wpseo_breadcrumb_single_link_info хук-фильтр . Yoast 1.0
Filter: 'wpseo_breadcrumb_single_link_info' - Allow developers to filter the Yoast SEO Breadcrumb link information.
Использование
add_filter( 'wpseo_breadcrumb_single_link_info', 'filter_function_name_7279', 10, 3 ); function filter_function_name_7279( $link_info, $index, $crumbs ){ // filter... return $link_info; }
- $link_info(массив)
- The breadcrumb link information.
- $index(число)
- The index of the breadcrumb in the list.
- $crumbs(массив)
- The complete list of breadcrumbs.
Где вызывается хук
yoast/src/generators/breadcrumbs-generator.php 192
return \apply_filters( 'wpseo_breadcrumb_single_link_info', $link_info, $index, $crumbs );