WPSEO_Base_Menu::get_license_page_title()
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() WPSEO Base Menu::get license page title Yoast 24.3
protected function get_license_page_title() { static $title = null; if ( $title === null ) { $title = __( 'Upgrades', 'wordpress-seo' ); } if ( YoastSEO()->classes->get( Promotion_Manager::class )->is( 'black-friday-2024-promotion' ) && ! YoastSEO()->helpers->product->is_premium() ) { $title = __( 'Upgrades', 'wordpress-seo' ) . '<span class="yoast-menu-bf-sale-badge">' . __( '30% OFF', 'wordpress-seo' ) . '</span>'; } return $title; }