wpseo_title хук-фильтр . Yoast 1.0
Filter: 'wpseo_title' - Allow changing the Yoast SEO generated title.
Использование
add_filter( 'wpseo_title', 'filter_function_name_522', 10, 2 ); function filter_function_name_522( $title, $presentation ){ // filter... return $title; }
- $title(строка)
- The title.
- $presentation(Indexable_Presentation)
- The presentation of an indexable.
Где вызывается хук
wpseo_title
yoast/src/presenters/title-presenter.php 53
$title = \apply_filters( 'wpseo_title', $title, $this->presentation );
Где используется хук в ядре Yoast SEO
yoast/src/integrations/third-party/woocommerce.php 99
\add_filter( 'wpseo_title', [ $this, 'title' ], 10, 2 );