jetpack_seo_custom_title_conflicted_themes

Can be used to specify a list of themes that use their own custom title format.

Description

apply_filters( 'jetpack_seo_custom_title_conflicted_themes', (array) $array ); 

If current site is using one of the themes listed as conflicting, Jetpack SEO custom title formats will be disabled.

Parameters (1)

0. $array (array) => array()
List of conflicted theme names. Defaults to empty array.

Usage

To run the hook, copy the example below.
  1. $array = apply_filters( 'jetpack_seo_custom_title_conflicted_themes', $array ); 
  2.  
  3. if ( !empty( $array ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the jetpack_seo_custom_title_conflicted_themes callback 
  2. function filter_jetpack_seo_custom_title_conflicted_themes( $array ) { 
  3. // make filter magic happen here... 
  4. return $array
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'jetpack_seo_custom_title_conflicted_themes', 'filter_jetpack_seo_custom_title_conflicted_themes', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'jetpack_seo_custom_title_conflicted_themes', 'filter_jetpack_seo_custom_title_conflicted_themes', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/modules/seo-tools/jetpack-seo-titles.php  
  1. $conflicted_themes = apply_filters( 'jetpack_seo_custom_title_conflicted_themes', array() );