WPSEO_Rank::get_drop_down_inclusive_language_labels
Gets the drop down labels for the inclusive language score.
Метод класса: WPSEO_Rank{}
Хуков нет.
Возвращает
Строку. The inclusive language rank label.
Использование
$WPSEO_Rank = new WPSEO_Rank(); $WPSEO_Rank->get_drop_down_inclusive_language_labels();
Код WPSEO_Rank::get_drop_down_inclusive_language_labels() WPSEO Rank::get drop down inclusive language labels Yoast 27.3
public function get_drop_down_inclusive_language_labels() {
$labels = [
self::BAD => sprintf(
/* translators: %s expands to the inclusive language score */
__( 'Inclusive language: %s', 'wordpress-seo' ),
__( 'Needs improvement', 'wordpress-seo' ),
),
self::OK => sprintf(
/* translators: %s expands to the inclusive language score */
__( 'Inclusive language: %s', 'wordpress-seo' ),
__( 'Potentially non-inclusive', 'wordpress-seo' ),
),
self::GOOD => sprintf(
/* translators: %s expands to the inclusive language score */
__( 'Inclusive language: %s', 'wordpress-seo' ),
__( 'Good', 'wordpress-seo' ),
),
];
return $labels[ $this->rank ];
}