wpseo_locale хук-фильтр . Yoast 1.0
Filter: 'wpseo_locale' - Allow changing the locale output.
Note that this filter is different from wpseo_og_locale, which is run _after_ the OG specific filtering.
Использование
add_filter( 'wpseo_locale', 'filter_function_name_2476' ); function filter_function_name_2476( $\get_locale ){ // filter... return $\get_locale; }
- $\get_locale(строка)
- Locale string.
Где вызывается хук
wpseo_locale
yoast/src/generators/open-graph-locale-generator.php 27
$locale = \apply_filters( 'wpseo_locale', \get_locale() );