wpseo_tax_meta_special_term_id_validation_(term_id)
Is this term id a special case ?
Использование
add_filter( 'wpseo_tax_meta_special_term_id_validation_(term_id)', 'wp_kama_wpseo_tax_meta_special_term_id_validation_filter', 10, 3 ); /** * Function for `wpseo_tax_meta_special_term_id_validation_(term_id)` filter-hook. * * @param $meta_data * @param $taxonomy * @param $term_id * * @return */ function wp_kama_wpseo_tax_meta_special_term_id_validation_filter( $meta_data, $taxonomy, $term_id ){ // filter... return $meta_data; }
- $meta_data
- -
- $taxonomy
- -
- $term_id
- -
Где вызывается хук
wpseo_tax_meta_special_term_id_validation_(term_id)
yoast/inc/options/class-wpseo-taxonomy-meta.php 160
$clean[ $taxonomy ][ $term_id ] = apply_filters( 'wpseo_tax_meta_special_term_id_validation_' . $term_id, $meta_data, $taxonomy, $term_id );
yoast/inc/options/class-wpseo-taxonomy-meta.php 176
$clean[ $taxonomy ][ $term_id ] = apply_filters( 'wpseo_tax_meta_special_term_id_validation_' . $term_id, $meta_data, $taxonomy, $term_id );