src/Admin/AdminPageHelper.php
public function registerOptionPage($pluginName = null)
    {
        add_action('admin_init', array(&$this, 'adminInit'));
        if ($this->multiSite) {
            add_action('network_admin_menu', array(&$this, 'networkAdminMenu'));
            add_action('update_wpmu_options', array(&$this, 'adminUpdateOptions'));
        } else {
            add_action('admin_menu', array(&$this, 'adminMenu'));
        }
        if ($pluginName) {
            add_filter("plugin_action_links_" . $pluginName, array(&$this, 'settingsLink'));
        }
    }
public function registerOptionPage($pluginName = null)
    {
        add_action('admin_init', array(&$this, 'adminInit'));
        if ($this->multiSite) {
            add_action('network_admin_menu', array(&$this, 'networkAdminMenu'));
            add_action('update_wpmu_options', array(&$this, 'adminUpdateOptions'));
        } else {
            add_action('admin_menu', array(&$this, 'adminMenu'));
        }
        if ($pluginName) {
            add_filter("plugin_action_links_" . $pluginName, array(&$this, 'settingsLink'));
        }
    }
public function registerOptionPage ( $ pluginName = null ) { add_action ( 'admin_init' , array ( & $ this , 'adminInit' ) ) ; if ( $ this -> multiSite ) { add_action ( 'network_admin_menu' , array ( & $ this , 'networkAdminMenu' ) ) ; add_action ( 'update_wpmu_options' , array ( & $ this , 'adminUpdateOptions' ) ) ; } else { add_action ( 'admin_menu' , array ( & $ this , 'adminMenu' ) ) ; } if ( $ pluginName ) { add_filter ( "plugin_action_links_" . $ pluginName , array ( & $ this , 'settingsLink' ) ) ; } }
Register WP hooks to render admin page.
Should be called inside of WP_Loaded hook, but can be called either after or before adding the settings.

@param string $pluginName - If specified, this will register a "settings" link for the plugin.
Register WP hooks to render admin page . Should be called inside of WP_Loaded hook but can be called either after or before adding the settings .