Yoast\WP\SEO\Context

Meta_Tags_Context::generate_open_graph_publisher()publicYoast 1.0

Returns the open graph publisher.

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

Хуков нет.

Возвращает

Строку. The open graph publisher.

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

$Meta_Tags_Context = new Meta_Tags_Context();
$Meta_Tags_Context->generate_open_graph_publisher();

Код Meta_Tags_Context::generate_open_graph_publisher() Yoast 22.4

public function generate_open_graph_publisher() {
	if ( $this->site_represents === 'company' ) {
		return $this->options->get( 'facebook_site', '' );
	}
	if ( $this->site_represents === 'person' ) {
		return $this->user->get_the_author_meta( 'facebook', $this->site_user_id );
	}

	return $this->options->get( 'facebook_site', '' );
}