wpseo_breadcrumb_output_wrapper
Retrieves the wrapper element name.
Использование
add_filter( 'wpseo_breadcrumb_output_wrapper', 'wp_kama_wpseo_breadcrumb_output_wrapper_filter' );
/**
* Function for `wpseo_breadcrumb_output_wrapper` filter-hook.
*
* @param $string
*
* @return
*/
function wp_kama_wpseo_breadcrumb_output_wrapper_filter( $string ){
// filter...
return $string;
}
- $string
- -
Где вызывается хук
wpseo_breadcrumb_output_wrapper
yoast/src/presenters/breadcrumbs-presenter.php 228
$this->wrapper = \apply_filters( 'wpseo_breadcrumb_output_wrapper', 'span' );