Yoast\WP\SEO\Presenters\Open_Graph

Locale_Presenter::get()publicYoast 1.0

Run the locale through the wpseo_og_locale

Метод класса: Locale_Presenter{}

Хуки из метода

Возвращает

Строку. The filtered locale.

Использование

$Locale_Presenter = new Locale_Presenter();
$Locale_Presenter->get();

Код Locale_Presenter::get() Yoast 22.3

public function get() {
	/**
	 * Filter: 'wpseo_og_locale' - Allow changing the Yoast SEO Open Graph locale.
	 *
	 * @param string                 $locale       The locale string
	 * @param Indexable_Presentation $presentation The presentation of an indexable.
	 */
	return (string) \trim( \apply_filters( 'wpseo_og_locale', $this->presentation->open_graph_locale, $this->presentation ) );
}