WPSEO_Base_Menu::get_license_page_title()protectedYoast 1.0

Returns the page title to use for the licenses page.

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

Хуков нет.

Возвращает

Строку. The title for the license page.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_license_page_title();

Код WPSEO_Base_Menu::get_license_page_title() Yoast 22.3

protected function get_license_page_title() {
	static $title = null;

	if ( $title === null ) {
		$title = __( 'Premium', 'wordpress-seo' );
	}

	if ( YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-2023-promotion' ) && ! YoastSEO()->helpers->product->is_premium() ) {
		$title = __( 'Premium', 'wordpress-seo' ) . '<span class="yoast-menu-bf-sale-badge">' . __( '30% OFF', 'wordpress-seo' ) . '</span>';
	}

	return $title;
}