Yoast\WP\SEO\Task_List\Application\Tasks
Improve_Content_SEO::is_valid
Returns whether the task is valid.
Метод класса: Improve_Content_SEO{}
Хуков нет.
Возвращает
bool.
Использование
$Improve_Content_SEO = new Improve_Content_SEO(); $Improve_Content_SEO->is_valid(): bool;
Код Improve_Content_SEO::is_valid() Improve Content SEO::is valid Yoast 28.9
public function is_valid(): bool {
if ( ! $this->indexable_helper->should_index_indexables() ) {
return false;
}
$enabled_features = $this->enabled_analysis_features_repository->get_enabled_features()->to_array();
if ( ! isset( $enabled_features[ Keyphrase_Analysis::NAME ] ) || $enabled_features[ Keyphrase_Analysis::NAME ] === false ) {
return false;
}
return true;
}