wpseo_breadcrumb_output
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.
Где вызывается хук
wpseo_breadcrumb_output
yoast/src/presenters/breadcrumbs-presenter.php 107
return \apply_filters( 'wpseo_breadcrumb_output', $output, $this->presentation );