Yoast\WP\SEO\Presenters\Open_Graph

Site_Name_Presenter::get()publicYoast 1.0

Runs the site name through the wpseo_opengraph_site_name

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

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

Возвращает

Строку. The filtered site_name.

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

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

Код Site_Name_Presenter::get() Yoast 22.3

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