wpseo_breadcrumb_output_class
Filter: wpseo_breadcrumb_output_class Allow changing the HTML class on the Yoast SEO breadcrumbs wrapper element.
Использование
add_filter( 'wpseo_breadcrumb_output_class', 'wp_kama_wpseo_breadcrumb_output_class_filter' );
/**
* Function for `wpseo_breadcrumb_output_class` filter-hook.
*
* @param string $unsigned Class to add to the wrapper element.
*
* @return string
*/
function wp_kama_wpseo_breadcrumb_output_class_filter( $unsigned ){
// filter...
return $unsigned;
}
- $unsigned(строка)
- Class to add to the wrapper element.
Где вызывается хук
wpseo_breadcrumb_output_class
yoast/src/presenters/breadcrumbs-presenter.php 208
$this->class = \apply_filters( 'wpseo_breadcrumb_output_class', '' );