WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Получай пассивный доход от сайта
функция не описана

Yoast\WP\SEO\Presenters\Admin

Premium_Badge_Presenter::present() public Yoast 1.0

Presents the Premium Badge. If a link has been passed, the badge is presented with the link. Otherwise a static badge is presented.

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

Хуков нет.

Возвращает

Строку. The styled Premium Badge.

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

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

Код Premium_Badge_Presenter::present() Yoast 16.7

<?php
public function present() {
	if ( $this->link !== '' ) {
		return \sprintf(
			'<a class="yoast-badge yoast-badge__is-link yoast-premium-badge" id="%1$s-premium-badge" href="%2$s">%3$s</a>',
			\esc_attr( $this->id ),
			\esc_url( $this->link ),
			'Premium' // We don't want this string to be translatable.
		);
	}

	return \sprintf(
		'<span class="yoast-badge yoast-premium-badge" id="%1$s-premium-badge">%2$s</span>',
		\esc_attr( $this->id ),
		'Premium' // We don't want this string to be translatable.
	);
}