wpseo_tax_meta_special_term_id_validation_(term_id) хук-фильтрYoast 1.0

Deal with special cases (for when taxonomy doesn't exist yet).

Использование

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_Taxonomy_Meta::validate_option()
wpseo_tax_meta_special_term_id_validation_(term_id)
yoast/inc/options/class-wpseo-taxonomy-meta.php 173
$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 157
$clean[ $taxonomy ][ $term_id ] = apply_filters( 'wpseo_tax_meta_special_term_id_validation_' . $term_id, $meta_data, $taxonomy, $term_id );

Где используется хук в Yoast SEO

Использование не найдено.