Yoast\WP\SEO\Context
Meta_Tags_Context::generate_open_graph_publisher() public Yoast 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() Meta Tags Context::generate open graph publisher Yoast 16.1.1
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', '' );
}