WPSEO_Meta_Columns::create_bad_readability_scores_filter()
Creates a filter to retrieve posts that have bad readability scores, including those that have not enough content to have one.
Метод класса: WPSEO_Meta_Columns{}
Хуков нет.
Возвращает
Массив<Массив<Строку>>
. Array containing the bad readability filter.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->create_bad_readability_scores_filter();
Код WPSEO_Meta_Columns::create_bad_readability_scores_filter() WPSEO Meta Columns::create bad readability scores filter Yoast 24.7
protected function create_bad_readability_scores_filter() { $rank = new WPSEO_Rank( WPSEO_Rank::BAD ); return [ 'relation' => 'OR', [ 'key' => WPSEO_Meta::$meta_prefix . 'content_score', 'value' => [ $rank->get_starting_score(), $rank->get_end_score() ], 'type' => 'numeric', 'compare' => 'BETWEEN', ], [ [ 'key' => WPSEO_Meta::$meta_prefix . 'content_score', 'value' => 'needs-a-value-anyway', 'compare' => 'NOT EXISTS', ], [ 'key' => WPSEO_Meta::$meta_prefix . 'estimated-reading-time-minutes', 'compare' => 'EXISTS', ], ], ]; }