wpseo_debug_markers хук-фильтрYoast 1.0

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.

Где вызывается хук

Marker_Open_Presenter::present()
wpseo_debug_markers
Marker_Close_Presenter::present()
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 ) ) {

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

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