Yoast\WP\SEO\Plans\User_Interface
Plans_Page_Integration::register_hooks
Initializes the integration.
This is the place to register hooks and filters.
Метод класса: Plans_Page_Integration{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$Plans_Page_Integration = new Plans_Page_Integration(); $Plans_Page_Integration->register_hooks();
Код Plans_Page_Integration::register_hooks() Plans Page Integration::register hooks Yoast 28.8
public function register_hooks() {
// Add page with priority 7 to add it above the workouts.
\add_filter( 'wpseo_submenu_pages', [ $this, 'add_page' ], 7 );
\add_filter( 'wpseo_network_submenu_pages', [ $this, 'add_page' ], 7 );
// Are we on our page?
if ( $this->admin_conditional->is_met() && $this->current_page_helper->get_current_yoast_seo_page() === self::PAGE ) {
\add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_assets' ] );
\add_action( 'in_admin_header', [ $this, 'remove_notices' ], \PHP_INT_MAX );
}
}