/** * Register admin pages. * * @since 1.0.0 * * @uses Manager::settings_page() for general options page output. * @uses Documenter::register_help_tabs() to register help tabs for all screens. */ public static function add_menu_pages() { // Main Options page $options_page_hook = add_utility_page(__('[plugin name] Options', 'plugin-name'), _x('[plugin name]', 'menu title', 'plugin-name'), 'manage_options', 'pluginname-options', array(get_called_class(), 'settings_page'), 'dashicons-admin-generic'); // Setup the help tabs for each page Documenter::register_help_tabs(array($options_page_hook => 'options')); }