public function add_admin_pages() { $capability = ITSEC_Core::get_required_cap(); $page_refs = array(); add_menu_page(__('Settings', 'better-wp-security'), __('Security', 'better-wp-security'), $capability, 'itsec', array($this, 'show_page')); $page_refs[] = add_submenu_page('itsec', __('iThemes Security Settings', 'better-wp-security'), __('Settings', 'better-wp-security'), $capability, 'itsec', array($this, 'show_page')); $page_refs[] = add_submenu_page('itsec', '', __('Security Check', 'better-wp-security'), $capability, 'itsec-security-check', array($this, 'show_page')); $page_refs[] = add_submenu_page('itsec', __('iThemes Security Logs', 'better-wp-security'), __('Logs', 'better-wp-security'), $capability, 'itsec-logs', array($this, 'show_page')); if (!ITSEC_Core::is_pro()) { $page_refs[] = add_submenu_page('itsec', '', '<span style="color:#2EA2CC">' . __('Go Pro', 'better-wp-security') . '</span>', $capability, 'itsec-go-pro', array($this, 'show_page')); } foreach ($page_refs as $page_ref) { add_action("load-{$page_ref}", array($this, 'load')); } }
function itsec_network_brute_force_add_notice() { if (ITSEC_Modules::get_setting('network-brute-force', 'api_nag') && current_user_can(ITSEC_Core::get_required_cap())) { ITSEC_Core::add_notice('itsec_network_brute_force_show_notice'); } }