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

Filter: wpseo_breadcrumb_output Allow changing the HTML output of the Yoast SEO breadcrumbs class.

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

add_filter( 'wpseo_breadcrumb_output', 'wp_kama_wpseo_breadcrumb_output_filter', 10, 2 );

/**
 * Function for `wpseo_breadcrumb_output` filter-hook.
 * 
 * @param string                 $output       The HTML output.
 * @param Indexable_Presentation $presentation The presentation of an indexable.
 *
 * @return string
 */
function wp_kama_wpseo_breadcrumb_output_filter( $output, $presentation ){

	// filter...
	return $output;
}
$output(строка)
The HTML output.
$presentation(Indexable_Presentation)
The presentation of an indexable.

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

Breadcrumbs_Presenter::filter()
wpseo_breadcrumb_output
yoast/src/presenters/breadcrumbs-presenter.php 107
return \apply_filters( 'wpseo_breadcrumb_output', $output, $this->presentation );

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

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