コード例 #1
0
 function __construct()
 {
     self::$user_label = __('Admin Menu Upgrade Link', 'psts');
     self::$user_description = __('Displays a convenient upgrade link in the admin menu.', 'psts');
     add_action('psts_settings_page', array(&$this, 'settings'));
     add_action('admin_menu', array(&$this, 'admin_menu'), 20);
     add_action('admin_print_scripts', array(&$this, 'admin_print_scripts'), 99);
     add_filter('psts_settings_filter', array(&$this, 'psts_settings_filter'), 10, 1);
     add_action('init', array(&$this, 'redirect'), 10, 1);
 }
コード例 #2
0
ファイル: Settings.php プロジェクト: vilmark/vilmark_main
 /**
  * 'Upgrade Admin Links'
  *
  * @return string
  */
 public static function render_tab_upgrade_admin_links()
 {
     ProSites_Helper_Settings::settings_header(ProSites_Helper_Tabs_Settings::get_active_tab());
     $module = new ProSites_Module_UpgradeAdminLinks();
     echo $module->settings();
 }