Yoast\WP\SEO\Context
Meta_Tags_Context::generate_open_graph_publisher()
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 23.6
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', '' ); }