当前位置: 首页>>代码示例>>PHP>>正文


PHP add_management_page函数代码示例

本文整理汇总了PHP中add_management_page函数的典型用法代码示例。如果您正苦于以下问题:PHP add_management_page函数的具体用法?PHP add_management_page怎么用?PHP add_management_page使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了add_management_page函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: rt_simplemap_add_pages

function rt_simplemap_add_pages()
{
    // Add a new submenu under Options:
    add_options_page('SimpleMap Options', 'SimpleMap', 8, 'rt_simplemap', 'rt_simplemap_options_page');
    // Add a new submenu under Manage:
    add_management_page('SimpleMap Manage', 'SimpleMap', 8, 'rt_simplemap', 'rt_simplemap_manage_page');
}
开发者ID:philhassey,项目名称:ludumdare,代码行数:7,代码来源:options.php

示例2: register_screen

 public function register_screen()
 {
     $title = __('Event Data Cleanup', 'eventrocket');
     $capability = $this->min_capability;
     $callback = array($this, 'screen');
     add_management_page($title, $title, $capability, 'eventrocket_jettison', $callback);
 }
开发者ID:simple-beck,项目名称:project-gc,代码行数:7,代码来源:clean-up.php

示例3: _admin_action_admin_menu

 /**
  * @internal
  */
 public function _admin_action_admin_menu()
 {
     if (!current_user_can(self::backups()->get_capability()) || !$this->get_demos()) {
         return;
     }
     add_management_page(__('Demo Content Install', 'fw'), __('Demo Content Install', 'fw'), self::backups()->get_capability(), $this->get_page_slug(), array($this, '_display_page'));
 }
开发者ID:ThemeFuse,项目名称:Unyson-Backups-Extension,代码行数:10,代码来源:class-fw-extension-backups-demo.php

示例4: bb_zx_menu

 /**
  * Add shortcodes menu
  **/
 function bb_zx_menu()
 {
     // Add a submenu item and page to Tools
     add_management_page('Axiomz Tools Menu', 'Axiomz Tools Menu Title', 'export', 'bb-zx-tools-page', array($this, 'bb_zx_tools_page'));
     // Add submenu items to other pages
     // Dashboard
     //add_dashboard_page( $page_title, $menu_title, $capability, $menu_slug, $function);
     // Posts
     //add_posts_page( $page_title, $menu_title, $capability, $menu_slug, $function);
     // Media
     //add_media_page( $page_title, $menu_title, $capability, $menu_slug, $function);
     // Pages
     //add_pages_page( $page_title, $menu_title, $capability, $menu_slug, $function);
     // Comments
     //add_comments_page( $page_title, $menu_title, $capability, $menu_slug, $function);
     // Appearance
     //add_theme_page( $page_title, $menu_title, $capability, $menu_slug, $function);
     // Plugins
     //add_plugins_page( $page_title, $menu_title, $capability, $menu_slug, $function);
     // Users
     //add_users_page( $page_title, $menu_title, $capability, $menu_slug, $function);
     // Settings
     //add_options_page( $page_title, $menu_title, $capability, $menu_slug, $function);
     // Add top level page to admin menu & add submenu item to it
     //add_menu_page('Page title', 'Top-level menu title', 'manage_options', 'my-top-level-handle', 'my_magic_function');
     //add_submenu_page( 'my-top-level-handle', 'Page title', 'Sub-menu title', 'manage_options', 'my-submenu-handle', 'my_magic_function');
 }
开发者ID:bonbons0220,项目名称:axiomz,代码行数:30,代码来源:axiomz.php

示例5: wii2wx_add_page

function wii2wx_add_page()
{
    // the 'aspen_switcher' is the ?page= name for forms - use different if not add_theme_page
    //$page = add_theme_page(
    $page = add_management_page('Weaver II to Weaver Xtreme', 'Weaver Converter', 'manage_options', 'wii2wx_tools', 'wii2wx_admin');
    add_action('admin_print_styles-' . $page, 'wii2wx_load_admin_scripts');
}
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:7,代码来源:wii2wx_core.php

示例6: admin_menu

 public function admin_menu()
 {
     $this->page_hook = add_management_page(__('Rewrite analyzer', $this->gettext_domain), __('Rewrite analyzer', $this->gettext_domain), 'administrator', 'monkeyman-rewrite-analyzer', array(&$this, 'do_analyze_page'));
     add_action('admin_print_styles-' . $this->page_hook, array(&$this, 'admin_print_styles'));
     add_action('admin_print_scripts-' . $this->page_hook, array(&$this, 'admin_print_scripts'));
     add_filter('contextual_help', array(&$this, 'contextual_help'), 10, 3);
 }
开发者ID:asha23,项目名称:sdt,代码行数:7,代码来源:class-monkeyman-rewrite-analyzer.php

示例7: admin_menu_item

 function admin_menu_item()
 {
     // In this case menu item is add in admin menu 'Appearance'
     //add_theme_page(__('PO Composer', 'axiom'), __('PO Composer', 'axiom'), 'edit_theme_options', 'po_composer', array($this, 'build_page'));
     // In this case menu item is add in admin menu 'Tools'
     add_management_page(__('PO Composer', 'axiom'), __('PO Composer', 'axiom'), 'manage_options', 'po_composer', array($this, 'build_page'));
 }
开发者ID:pcuervo,项目名称:odc,代码行数:7,代码来源:po_composer.php

示例8: add_page

 /**
  * Add menu item/ui page
  * @since 1.0.0
  */
 public function add_page()
 {
     $this->admin_title = __('Taxonomy Switcher', 'wds');
     $this->admin_slug = 'taxonomy-switcher';
     $this->options_page = add_management_page($this->admin_title, $this->admin_title, 'manage_options', $this->admin_slug, array($this, 'do_page'));
     add_action('admin_head-' . $this->options_page, array($this, 'js'));
 }
开发者ID:sc0ttkclark,项目名称:taxonomy-switcher,代码行数:11,代码来源:Taxonomy_Switcher_UI.php

示例9: admin_menu

 public function admin_menu()
 {
     $betterAnalyticsOptions = get_option('better_analytics');
     $currentUser = wp_get_current_user();
     $canViewSettings = empty($betterAnalyticsOptions['lock_settings_user_id']) || $betterAnalyticsOptions['lock_settings_user_id'] == $currentUser->ID;
     add_management_page(esc_html__('Test Analytics Setup', 'better-analytics'), esc_html__('Test Analytics Setup', 'better-analytics'), 'manage_options', 'better-analytics_test', array($this, 'display_test_page'));
     add_management_page(esc_html__('OAuth2 Endpoint', 'better-analytics'), esc_html__('OAuth2 Endpoint', 'better-analytics'), 'manage_options', 'better-analytics_auth', array($this, 'api_authentication'));
     if (DigitalPointBetterAnalytics_Base_Public::getInstance()->canViewReports()) {
         add_menu_page(esc_html__('Analytics', 'better-analytics'), esc_html__('Analytics', 'better-analytics'), 'read', 'better-analytics_heatmaps', null, 'dashicons-chart-line', 3.1975123);
         add_submenu_page('better-analytics_heatmaps', esc_html__('Heat Maps', 'better-analytics'), esc_html__('Reports', 'better-analytics'), 'read', 'better-analytics_heatmaps', array($this, 'display_page'));
         add_submenu_page('better-analytics_heatmaps', esc_html__('Charts', 'better-analytics'), esc_html__('Charts', 'better-analytics'), 'read', 'better-analytics_areacharts', array($this, 'display_page'));
         add_submenu_page('better-analytics_heatmaps', esc_html__('Issue Monitor', 'better-analytics'), esc_html__('Issue Monitor', 'better-analytics'), 'read', 'better-analytics_monitor', array($this, 'display_page'));
         add_submenu_page('better-analytics_heatmaps', esc_html__('Events', 'better-analytics'), esc_html__('Events', 'better-analytics'), 'read', 'better-analytics_events', array($this, 'display_page'));
     }
     add_submenu_page('better-analytics_heatmaps', esc_html__('Goals', 'better-analytics'), esc_html__('Goals', 'better-analytics'), 'manage_options', 'better-analytics_goals', array($this, 'display_page'));
     add_submenu_page('better-analytics_heatmaps', esc_html__('A/B Testing', 'better-analytics'), esc_html__('A/B Testing', 'better-analytics'), 'manage_options', 'better-analytics_experiments', array($this, 'display_page'));
     if ($canViewSettings) {
         add_submenu_page('better-analytics_heatmaps', esc_html__('Settings', 'better-analytics'), esc_html__('Settings', 'better-analytics'), 'manage_options', 'options-general.php' . '?page=better-analytics');
     }
     add_submenu_page('better-analytics_heatmaps', esc_html__('Test Setup', 'better-analytics'), esc_html__('Test Setup', 'better-analytics'), 'manage_options', 'tools.php' . '?page=better-analytics_test');
     if ($canViewSettings) {
         $hook = add_options_page(esc_html__('Better Analytics', 'better-analytics'), esc_html__('Better Analytics', 'better-analytics'), 'manage_options', 'better-analytics', array($this, 'display_configuration_page'));
         add_action("load-{$hook}", array($this, 'admin_help'));
     }
 }
开发者ID:xalgorithm,项目名称:amcf-wp,代码行数:25,代码来源:Admin.php

示例10: managementInit

 function managementInit()
 {
     global $management;
     wp_enqueue_script('listman');
     add_management_page('Quotes', 'Quotes', 5, basename(__FILE__), array(&$management, 'displayManagementPage'));
     add_options_page('Flexi Quote Rotator Options', 'Quote Rotator', 10, basename(__FILE__), array(&$management, 'displayOptionsPage'));
 }
开发者ID:rizzle-bizzle,项目名称:ards,代码行数:7,代码来源:flexi-quote-rotator.php

示例11: filebrowser_menu_entry

function filebrowser_menu_entry()
{
    $hook = add_management_page(__('FileBrowser', 'filebrowser'), __('FileBrowser', 'filebrowser'), '10', 'FileBrowser', 'filebrowser_options_page');
    add_action('load-' . $hook, 'filebrowser_options_load');
    register_column_headers($hook, array('cb' => '<input type="checkbox" />', 'name' => __('Name', 'filebrowser'), 'size' => __('Size', 'filebrowser'), 'mdate' => __('Date', 'filebrowser'), 'premissions' => __('Permissions', 'filebrowser')));
    add_contextual_help($hook, filebrowser_show_help());
}
开发者ID:patrickouc,项目名称:wordpress2,代码行数:7,代码来源:functions.php

示例12: admin_menu

 /**
 Hook the menu
 */
 function admin_menu()
 {
     add_management_page(__('Subscribers', 'subscribe2'), __('Subscribers', 'subscribe2'), "manage_options", basename(__FILE__), array(&$this, 'manage_menu'));
     add_options_page(__('Subscribe2 Options', 'subscribe2'), 'Subscribe2', "manage_options", basename(__FILE__), array(&$this, 'options_menu'));
     add_submenu_page('profile.php', __('Subscriptions', 'subscribe2'), __('Subscriptions', 'subscribe2'), "read", __FILE__, array(&$this, 'user_menu'));
     add_submenu_page('post.php', __('Mail subscribers', 'subscribe2'), __('Mail subscribers', 'subscribe2'), "manage_options", __FILE__, array(&$this, 'write_menu'));
 }
开发者ID:sajidsan,项目名称:sajidsan.github.io,代码行数:10,代码来源:subscribe2.php

示例13: bpdd_admin_page

function bpdd_admin_page()
{
    if (!is_super_admin()) {
        return;
    }
    add_management_page(__('BuddyPress Default Data', 'bpdd'), __('BP Default Data', 'bpdd'), 'manage_options', 'bpdd-setup', 'bpdd_admin_page_content');
}
开发者ID:vsalx,项目名称:rattieinfo,代码行数:7,代码来源:bp-default-data.php

示例14: admin_menu

 /**
  * Add options settings menu and manage redirect tools
  *
  * @return void
  * @author Amaury Balmer
  */
 public function admin_menu()
 {
     $title = !isset($_GET['c_id']) ? __('BEA Send', 'bea_sender') : __('BEA Send - Campaign', 'bea_sender');
     $hook = add_management_page($title, __('BEA Send', 'bea_sender'), 'manage_options', 'bea_sender', array(&$this, 'pageManage'));
     add_action('load-' . $hook, array(__CLASS__, 'admin_enqueue_scripts'));
     add_action("admin_footer-" . $hook, array(__CLASS__, 'admin_footer'));
 }
开发者ID:asadowski10,项目名称:bea-sender,代码行数:13,代码来源:class.admin.php

示例15: add_fd_page

function add_fd_page()
{
    $page = add_management_page('Find duplicates', 'Find duplicates', 'manage_options', __FILE__, 'output_fd_page');
    add_action('admin_print_styles-' . $page, 'load_javascript');
    $page = add_options_page('Find duplicates', 'Find duplicates', 'manage_options', __FILE__, 'output_fd_options_page');
    add_action('admin_print_styles-' . $page, 'load_javascript_options');
}
开发者ID:annguyenit,项目名称:getdeal,代码行数:7,代码来源:find-duplicates.php


注:本文中的add_management_page函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。