本文整理汇总了PHP中ITSEC_Modules::run_active_modules方法的典型用法代码示例。如果您正苦于以下问题:PHP ITSEC_Modules::run_active_modules方法的具体用法?PHP ITSEC_Modules::run_active_modules怎么用?PHP ITSEC_Modules::run_active_modules使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ITSEC_Modules
的用法示例。
在下文中一共展示了ITSEC_Modules::run_active_modules方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: continue_init
public function continue_init()
{
ITSEC_Modules::run_active_modules();
add_action('ithemes_sync_register_verbs', array($this, 'register_sync_verbs'));
if (is_admin()) {
require $this->plugin_dir . 'core/admin-pages/init.php';
require $this->plugin_dir . 'core/class-itsec-dashboard-admin.php';
new ITSEC_Dashboard_Admin($this);
//add action link
add_filter('plugin_action_links', array($this, 'add_action_link'), 10, 2);
//add plugin meta links
add_filter('plugin_row_meta', array($this, 'add_plugin_meta_links'), 10, 4);
}
register_activation_hook($this->plugin_file, array('ITSEC_Core', 'on_activate'));
register_deactivation_hook($this->plugin_file, array('ITSEC_Core', 'on_deactivate'));
register_uninstall_hook($this->plugin_file, array('ITSEC_Core', 'on_uninstall'));
//Admin bar links
if (!ITSEC_Modules::get_setting('global', 'hide_admin_bar')) {
add_action('admin_bar_menu', array($this, 'admin_bar_links'), 99);
}
//See if they're upgrade from Better WP Security
if (is_multisite() && true === ITSEC_Modules::get_setting('global', 'did_upgrade')) {
switch_to_blog(1);
$bwps_options = get_option('bit51_bwps');
restore_current_blog();
} else {
$bwps_options = get_option('bit51_bwps');
}
if ($bwps_options !== false) {
add_action('plugins_loaded', array($this, 'do_upgrade'));
}
do_action('itsec_initialized');
}