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