wpseo_(content_type)_filtering_taxonomy
Filter: 'wpseo_{$content_type}_filtering_taxonomy' - Allows overriding which taxonomy filters the content type.
Использование
add_filter( 'wpseo_(content_type)_filtering_taxonomy', 'wp_kama_wpseo_content_type_filtering_taxonomy_filter' );
/**
* Function for `wpseo_(content_type)_filtering_taxonomy` filter-hook.
*
* @param string $filtering_taxonomy The taxonomy that filters the content type.
*
* @return string
*/
function wp_kama_wpseo_content_type_filtering_taxonomy_filter( $filtering_taxonomy ){
// filter...
return $filtering_taxonomy;
}
- $filtering_taxonomy(строка)
- The taxonomy that filters the content type.
Где вызывается хук
wpseo_(content_type)_filtering_taxonomy
yoast/src/dashboard/infrastructure/taxonomies/taxonomies-collector.php 45
$filtering_taxonomy = \apply_filters( "wpseo_{$content_type}_filtering_taxonomy", '' );