Yoast\WP\SEO\Builders

Indexable_Term_Builder::get_keyword_score()protectedYoast 1.0

Determines the focus keyword score.

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

Хуков нет.

Возвращает

int|null. Score to use.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_keyword_score( $keyword, $score );
$keyword(строка) (обязательный)
The focus keyword that is set.
$score(int) (обязательный)
The score saved on the meta data.

Код Indexable_Term_Builder::get_keyword_score() Yoast 22.4

protected function get_keyword_score( $keyword, $score ) {
	if ( empty( $keyword ) ) {
		return null;
	}

	return $score;
}