Yoast\WP\SEO\Editors\Framework\Seo\Posts
Social_Data_Provider::use_social_templates
Determines whether the social templates should be used.
Метод класса: Social_Data_Provider{}
Хуков нет.
Возвращает
true|false. Whether the social templates should be used.
Использование
// private - только в коде основоного (родительского) класса $result = $this->use_social_templates(): bool;
Код Social_Data_Provider::use_social_templates() Social Data Provider::use social templates Yoast 27.7
private function use_social_templates(): bool {
return $this->options_helper->get( 'opengraph', false ) === true;
}