WPSEO_Rank::get_drop_down_label()publicYoast 1.0

Returns a label for use in a drop down.

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

Хуков нет.

Возвращает

Разное.

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

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

Код WPSEO_Rank::get_drop_down_label() Yoast 19.6.1

public function get_drop_down_label() {
	$labels = [
		self::NO_FOCUS => sprintf(
			/* translators: %s expands to the SEO score */
			__( 'SEO: %s', 'wordpress-seo' ),
			__( 'No Focus Keyphrase', 'wordpress-seo' )
		),
		self::BAD => sprintf(
			/* translators: %s expands to the SEO score */
			__( 'SEO: %s', 'wordpress-seo' ),
			__( 'Needs improvement', 'wordpress-seo' )
		),
		self::OK => sprintf(
			/* translators: %s expands to the SEO score */
			__( 'SEO: %s', 'wordpress-seo' ),
			__( 'OK', 'wordpress-seo' )
		),
		self::GOOD => sprintf(
			/* translators: %s expands to the SEO score */
			__( 'SEO: %s', 'wordpress-seo' ),
			__( 'Good', 'wordpress-seo' )
		),
		self::NO_INDEX => sprintf(
			/* translators: %s expands to the SEO score */
			__( 'SEO: %s', 'wordpress-seo' ),
			__( 'Post Noindexed', 'wordpress-seo' )
		),
	];

	return $labels[ $this->rank ];
}