Yoast\WP\SEO\Integrations\Admin
HelpScout_Beacon::is_beacon_page() private Yoast 1.0
Checks if the current page is a page containing the beacon.
{} Это метод класса: HelpScout_Beacon{}
Хуки из метода
Возвращает
null
. Ничего.
Использование
// private - только в коде основоного (родительского) класса $result = $this->is_beacon_page();
Код HelpScout_Beacon::is_beacon_page() HelpScout Beacon::is beacon page Yoast 16.1.1
private function is_beacon_page() {
$return = false;
if ( ! empty( $this->page ) && $GLOBALS['pagenow'] === 'admin.php' && isset( $this->pages_ids[ $this->page ] ) ) {
$return = true;
}
/**
* Filter: 'wpseo_helpscout_show_beacon' - Allows overriding whether we show the HelpScout beacon.
*
* @api bool - Whether we show the beacon or not.
*/
return apply_filters( 'wpseo_helpscout_show_beacon', $return );
}