function bebop_deactivate() { //delete tables and clean up the activity data include_once 'core/bebop-tables.php'; bebop_tables::drop_table('bp_bebop_general_log'); bebop_tables::drop_table('bp_bebop_error_log'); bebop_tables::drop_table('bp_bebop_options'); bebop_tables::drop_table('bp_bebop_user_meta'); bebop_tables::drop_table('bp_bebop_oer_manager'); bebop_tables::drop_table('bp_bebop_first_imports'); bebop_tables::remove_activity_stream_data(); //delete the scheduled crons wp_clear_scheduled_hook('bebop_main_import_cron'); wp_clear_scheduled_hook('bebop_secondary_import_cron'); }