wpseo_terms хук-фильтр . Yoast 1.0
Allows filtering of the terms list used to replace %%category%%, %%tag%% and %%ct_<custom-tax-name>%% variables.
Использование
add_filter( 'wpseo_terms', 'filter_function_name_955', 10, 2 ); function filter_function_name_955( $output, $taxonomy ){ // filter... return $output; }
- $output(строка)
- Comma-delimited string containing the terms.
- $taxonomy(строка)
- The taxonomy of the terms.
Где вызывается хук
wpseo_terms
yoast/inc/class-wpseo-replace-vars.php 1384
return apply_filters( 'wpseo_terms', $output, $taxonomy );