create_table(); } // Deactivation hook to clear scheduled events register_deactivation_hook( __FILE__, 'asbfg_deactivate_plugin' ); function asbfg_deactivate_plugin() { $timestamp = wp_next_scheduled( 'asbfg_cleanup_old_logs' ); if ( $timestamp ) { wp_unschedule_event( $timestamp, 'asbfg_cleanup_old_logs' ); } } // Initialize the plugin. new ASBFG_Submission_Blocker();