wpseo_debug_markers
Filter: wpseo_debug_markers Allow disabling the debug markers.
Использование
add_filter( 'wpseo_debug_markers', 'wp_kama_wpseo_debug_markers_filter' ); /** * Function for `wpseo_debug_markers` filter-hook. * * @param bool $show_markers True when the debug markers should be shown. * * @return bool */ function wp_kama_wpseo_debug_markers_filter( $show_markers ){ // filter... return $show_markers; }
- $show_markers(true|false)
- True when the debug markers should be shown.
Где вызывается хук
wpseo_debug_markers
wpseo_debug_markers
yoast/src/presenters/debug/marker-open-presenter.php 23
if ( ! \apply_filters( 'wpseo_debug_markers', true ) ) {
yoast/src/presenters/debug/marker-close-presenter.php 23
if ( ! \apply_filters( 'wpseo_debug_markers', true ) ) {