install(); // Register custom cron schedule filter before scheduling // Note: WP cron schedule registration must be active in normal flow as well. if (!wp_next_scheduled('oneclickformsync_process_queue')) { wp_schedule_event(time(), 'oneclickformsync_five_minutes', 'oneclickformsync_process_queue'); } // Set option to redirect to Setup Wizard on next page load update_option('oneclickformsync_show_wizard_on_activation', '1'); } }