wpseo_replacements_final хук-фильтр . Yoast 1.0
Filter: 'wpseo_replacements_final' - Allow overruling of whether or not to remove placeholders which didn't yield a replacement.
Использование
add_filter( 'wpseo_replacements_final', 'filter_function_name_3840' ); function filter_function_name_3840( $final ){ // filter... return $final; }
- $final(true/false)
- -
Где вызывается хук
wpseo_replacements_final
yoast/inc/class-wpseo-replace-vars.php 195
if ( apply_filters( 'wpseo_replacements_final', true ) === true && ( isset( $matches[1] ) && is_array( $matches[1] ) ) ) {