Jetpack_Admin_Page::add_actions PHP Méthode

add_actions() public méthode

public add_actions ( )
    function add_actions()
    {
        // If user is not an admin and site is in Dev Mode, don't do anything
        if (!current_user_can('manage_options') && Jetpack::is_development_mode()) {
            return;
        }
        // Don't add in the modules page unless modules are available!
        if ($this->dont_show_if_not_active && !Jetpack::is_active() && !Jetpack::is_development_mode()) {
            return;
        }
        // Initialize menu item for the page in the admin
        $hook = $this->get_page_hook();
        // Attach hooks common to all Jetpack admin pages based on the created
        // hook
        add_action("load-{$hook}", array($this, 'admin_help'));
        add_action("load-{$hook}", array($this, 'admin_page_load'));
        add_action("admin_head-{$hook}", array($this, 'admin_head'));
        add_action("admin_print_styles-{$hook}", array($this, 'admin_styles'));
        add_action("admin_print_scripts-{$hook}", array($this, 'admin_scripts'));
        if (!self::$block_page_rendering_for_idc) {
            add_action("admin_print_styles-{$hook}", array($this, 'additional_styles'));
        }
        // Check if the site plan changed and deactivate modules accordingly.
        add_action('current_screen', array($this, 'check_plan_deactivate_modules'));
        // Attach page specific actions in addition to the above
        $this->add_page_actions($hook);
    }