wpseo_og_locale хук-фильтр . Yoast 1.0
Filter: 'wpseo_og_locale' - Allow changing the Yoast SEO Open Graph locale.
Использование
add_filter( 'wpseo_og_locale', 'filter_function_name_8121', 10, 2 ); function filter_function_name_8121( $presentation->open_graph_locale, $presentation ){ // filter... return $presentation->open_graph_locale; }
- $presentation->open_graph_locale(строка)
- The locale string
- $presentation(Indexable_Presentation)
- The presentation of an indexable.
Где вызывается хук
wpseo_og_locale
yoast/src/presenters/open-graph/locale-presenter.php 33
return (string) \trim( \apply_filters( 'wpseo_og_locale', $this->presentation->open_graph_locale, $this->presentation ) );