Yoast\WP\SEO\Builders
Indexable_Post_Builder::get_keyword_score()
Determines the focus keyword score.
Метод класса: Indexable_Post_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_Post_Builder::get_keyword_score() Indexable Post Builder::get keyword score Yoast 24.1
protected function get_keyword_score( $keyword, $score ) { if ( empty( $keyword ) ) { return null; } return $score; }