當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Redux_Functions::modRewriteCheck方法代碼示例

本文整理匯總了PHP中Redux_Functions::modRewriteCheck方法的典型用法代碼示例。如果您正苦於以下問題:PHP Redux_Functions::modRewriteCheck方法的具體用法?PHP Redux_Functions::modRewriteCheck怎麽用?PHP Redux_Functions::modRewriteCheck使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Redux_Functions的用法示例。


在下文中一共展示了Redux_Functions::modRewriteCheck方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct


//.........這裏部分代碼省略.........
         /**
         
                         SHIM SECTION
                         Old variables and ways of doing things that need correcting.  ;)
         
                          **/
         // Variable name change
         if (!empty($this->args['page_cap'])) {
             $this->args['page_permissions'] = $this->args['page_cap'];
             unset($this->args['page_cap']);
         }
         if (!empty($this->args['page_position'])) {
             $this->args['page_priority'] = $this->args['page_position'];
             unset($this->args['page_position']);
         }
         if (!empty($this->args['page_type'])) {
             $this->args['menu_type'] = $this->args['page_type'];
             unset($this->args['page_type']);
         }
         // Get rid of extra_tabs! Not needed.
         if (is_array($extra_tabs) && !empty($extra_tabs)) {
             foreach ($extra_tabs as $tab) {
                 array_push($this->sections, $tab);
             }
         }
         // Move to the first loop area!
         /**
          * filter 'redux-sections'
          * @deprecated
          * @param  array $sections field option sections
          */
         $this->sections = apply_filters('redux-sections', $sections);
         // REMOVE LATER
         /**
          * filter 'redux-sections-{opt_name}'
          * @deprecated
          * @param  array $sections field option sections
          */
         $this->sections = apply_filters("redux-sections-{$this->args['opt_name']}", $this->sections);
         // REMOVE LATER
         /**
          * filter 'redux/options/{opt_name}/sections'
          * @param  array $sections field option sections
          */
         $this->sections = apply_filters("redux/options/{$this->args['opt_name']}/sections", $this->sections);
         /**
          * Construct hook
          * action 'redux/construct'
          * @param object $this ReduxFramework
          */
         do_action('redux/construct', $this);
         // Set the default values
         $this->_default_cleanup();
         // Internataionalization
         $this->_internationalization();
         // Register extra extensions
         $this->_register_extensions();
         // Grab database values
         $this->get_options();
         // Tracking
         $this->_tracking();
         // Set option with defaults
         //add_action( 'init', array( &$this, '_set_default_options' ), 101 );
         // Options page
         add_action('admin_menu', array($this, '_options_page'));
         // Admin Bar menu
         add_action('admin_bar_menu', array($this, '_admin_bar_menu'), 999);
         // Register setting
         add_action('admin_init', array($this, '_register_settings'));
         // Display admin notices in dev_mode
         if (true == $this->args['dev_mode']) {
             include_once self::$_dir . 'inc/debug.php';
             $this->debug = new ReduxDebugObject($this);
             if (true == $this->args['update_notice']) {
                 add_action('admin_init', array($this, '_update_check'));
             }
         }
         // Display admin notices
         add_action('admin_notices', array($this, '_admin_notices'));
         // Check for dismissed admin notices.
         add_action('admin_init', array($this, '_dismiss_admin_notice'), 9);
         // Enqueue the admin page CSS and JS
         if (isset($_GET['page']) && $_GET['page'] == $this->args['page_slug']) {
             add_action('admin_enqueue_scripts', array($this, '_enqueue'));
         }
         // Any dynamic CSS output, let's run
         add_action('wp_head', array(&$this, '_enqueue_output'), 150);
         require_once self::$_dir . 'inc/fields/import_export/import_export.php';
         $this->import_export = new Redux_import_export($this);
         // mod_rewrite check
         Redux_Functions::modRewriteCheck();
     }
     /**
      * Loaded hook
      *
      * action 'redux/loaded'
      * @param  object $this ReduxFramework
      */
     do_action('redux/loaded', $this);
 }
開發者ID:rossojames,項目名稱:wp-production,代碼行數:101,代碼來源:framework.php


注:本文中的Redux_Functions::modRewriteCheck方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。