gemsecurity_logs anywhere. */ public function register_tables() { global $wpdb; $wpdb->gemsecurity_logs = $wpdb->prefix . 'gemsecurity_logs'; $wpdb->gemsecurity_bans = $wpdb->prefix . 'gemsecurity_bans'; } /** * Daily cron: run the integrity scan only when auto-scan is enabled. */ public function maybe_run_daily_scan() { if ( Helper::get_setting( 'scanner_auto_scan', false ) ) { Modules\Scanner::run_and_store(); } if ( Helper::get_setting( 'vuln_scan_enabled', false ) ) { \GemSecurity\Security\Vulnerability::run_and_store(); } if ( Modules\HiddenAdmin::enabled() ) { Modules\HiddenAdmin::scan_and_store(); } // Catch a revoked or rotated social-login secret before a visitor does. if ( Modules\Registry::is_active( 'social-login' ) && Helper::get_setting( 'social_login_enabled', false ) ) { Modules\SocialLogin::health_check(); } // Drop magic-login links that expired unused. if ( Modules\Registry::is_active( 'magic-login' ) ) { Modules\MagicLogin::cleanup(); } } }