WPSEO_Meta_Columns::create_seo_score_filter()protectedYoast 1.0

Creates an SEO score filter.

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

Хуков нет.

Возвращает

Массив. The SEO score filter.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->create_seo_score_filter( $low, $high );
$low(number) (обязательный)
The lower boundary of the score.
$high(number) (обязательный)
The higher boundary of the score.

Код WPSEO_Meta_Columns::create_seo_score_filter() Yoast 22.4

protected function create_seo_score_filter( $low, $high ) {
	return [
		[
			'key'     => WPSEO_Meta::$meta_prefix . 'linkdex',
			'value'   => [ $low, $high ],
			'type'    => 'numeric',
			'compare' => 'BETWEEN',
		],
	];
}