WPSEO_Term_Metabox_Formatter::use_social_templates()publicYoast 1.0

Determines whether the social templates should be used.

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

Хуков нет.

Возвращает

true|false. Whether the social templates should be used.

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

$WPSEO_Term_Metabox_Formatter = new WPSEO_Term_Metabox_Formatter();
$WPSEO_Term_Metabox_Formatter->use_social_templates();

Код WPSEO_Term_Metabox_Formatter::use_social_templates() Yoast 19.11

public function use_social_templates() {
	return WPSEO_Options::get( 'opengraph', false ) === true;
}