WPSEO_Admin_Bar_Menu::get_score_icon()
Create the score icon.
Метод класса: WPSEO_Admin_Bar_Menu{}
Хуков нет.
Возвращает
Строку
. The score icon, or empty string.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_score_icon();
Код WPSEO_Admin_Bar_Menu::get_score_icon() WPSEO Admin Bar Menu::get score icon Yoast 22.4
protected function get_score_icon() { $is_seo_enabled = $this->get_is_seo_enabled(); $is_readability_enabled = $this->get_is_readability_enabled(); $indexable = $this->get_current_indexable(); if ( $is_seo_enabled ) { return $this->score_icon_helper->for_seo( $indexable, 'adminbar-seo-score' )->present(); } if ( $is_readability_enabled ) { return $this->score_icon_helper->for_readability( $indexable->readability_score, 'adminbar-seo-score' ) ->present(); } return ''; }