disable_wpseo_json_ld_search хук-фильтр . Yoast 1.0
Filter: 'disable_wpseo_json_ld_search' - Allow disabling of the json+ld output.
Использование
add_filter( 'disable_wpseo_json_ld_search', 'filter_function_name_6459' ); function filter_function_name_6459( $display_search ){ // filter... return $display_search; }
- $display_search(true/false)
- Whether or not to display json+ld search on the frontend.
Где вызывается хук
disable_wpseo_json_ld_search
yoast/src/generators/schema/website.php 77
if ( \apply_filters( 'disable_wpseo_json_ld_search', false ) ) {