WPSEO_Rank::get_starting_score()publicYoast 1.0

Get the starting score for this rank.

{} Это метод класса: WPSEO_Rank{}

Хуков нет.

Возвращает

int. The start score.

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

$WPSEO_Rank = new WPSEO_Rank();
$WPSEO_Rank->get_starting_score();

Код WPSEO_Rank::get_starting_score() Yoast 19.7.2

public function get_starting_score() {
	// No index does not have a starting score.
	if ( $this->rank === self::NO_INDEX ) {
		return -1;
	}

	return self::$ranges[ $this->rank ]['start'];
}