WPSEO_Metabox::is_meta_value_disabled()
Determines if the given meta value key is disabled.
Метод класса: WPSEO_Metabox{}
Хуков нет.
Возвращает
true|false
. Whether the given meta value key is disabled.
Использование
$WPSEO_Metabox = new WPSEO_Metabox(); $WPSEO_Metabox->is_meta_value_disabled( $key );
- $key(строка) (обязательный)
- The key of the meta value.
Код WPSEO_Metabox::is_meta_value_disabled() WPSEO Metabox::is meta value disabled Yoast 24.7
public function is_meta_value_disabled( $key ) { if ( $key === 'linkdex' && ! $this->seo_analysis->is_enabled() ) { return true; } if ( $key === 'content_score' && ! $this->readability_analysis->is_enabled() ) { return true; } if ( $key === 'inclusive_language_score' && ! $this->inclusive_language_analysis->is_enabled() ) { return true; } return false; }