Yoast\WP\SEO\Presenters

Score_Icon_Presenter::present()publicYoast 1.0

Presents the score icon.

Метод класса: Score_Icon_Presenter{}

Хуков нет.

Возвращает

Строку. The score icon.

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

$Score_Icon_Presenter = new Score_Icon_Presenter();
$Score_Icon_Presenter->present();

Код Score_Icon_Presenter::present() Yoast 22.4

public function present() {
	return \sprintf(
		'<div aria-hidden="true" title="%1$s" class="wpseo-score-icon %3$s"><span class="wpseo-score-text screen-reader-text">%2$s</span></div>',
		\esc_attr( $this->title ),
		\esc_html( $this->title ),
		\esc_attr( $this->css_class )
	);
}