WPSEO_Metabox_Analysis_SEO::is_user_enabled │ public │ Yoast 1.0

Whether or not this analysis is enabled by the user.

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

Хуков нет.

Возвращает

bool. Whether or not this analysis is enabled by the user.

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

$WPSEO_Metabox_Analysis_SEO = new WPSEO_Metabox_Analysis_SEO();
$WPSEO_Metabox_Analysis_SEO->is_user_enabled();

Код WPSEO_Metabox_Analysis_SEO::is_user_enabled() Yoast 28.9

public function is_user_enabled() {
	return ! get_the_author_meta( 'wpseo_keyword_analysis_disable', get_current_user_id() );
}