Yoast\WP\SEO\General\User_Interface
General_Page_Integration::register_hooks()
Initializes the integration.
This is the place to register hooks and filters.
Метод класса: General_Page_Integration{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$General_Page_Integration = new General_Page_Integration(); $General_Page_Integration->register_hooks();
Код General_Page_Integration::register_hooks() General Page Integration::register hooks Yoast 24.3
public function register_hooks() { // Add page. \add_filter( 'wpseo_submenu_pages', [ $this, 'add_page' ] ); // Are we on the dashboard page? if ( $this->current_page_helper->get_current_yoast_seo_page() === self::PAGE ) { \add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_assets' ] ); } }