本文整理匯總了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');
}