aioseo_disable_title_rewrites

Purpose

This filter can be used to prevent All in One SEO from rewriting the title.

Arguments (1)

  1. $disabled (boolean) – Whether the title shouldn’t be rewritten. Defaults to false.

Example code snippet

The code snippet below is just an example of how this filter can be used. In the example below, All in One SEO is prevented from rewriting term titles.

add_filter( 'aioseo_disable_title_rewrites', 'aioseo_disable_term_title_rewrites' );

function aioseo_disable_term_title_rewrites( $disabled ) {
   if ( is_category() || is_tag() || is_tax() ) {
      return true;
   }
   return false;
}