本文整理汇总了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);
}