false ) ); } flush_rewrite_rules(); delete_transient( 'shapeoptions_group_index' ); delete_transient( 'shapeoptions_dashboard_stats' ); require_once plugin_dir_path( __DIR__ ) . 'includes/class-shapeoptions-uploads.php'; Shapeoptions_Uploads::schedule(); if ( false === get_option( 'shapeoptions_version' ) ) { add_option( 'shapeoptions_install_time', time() ); } update_option( 'shapeoptions_version', SHAPEOPTIONS_VERSION ); } /** * Runs on plugin deactivation. * * Only the scheduled event goes: deactivating is not uninstalling, so * option groups, settings and the customer files themselves all stay * exactly where they are. */ public static function deactivate() { require_once plugin_dir_path( __DIR__ ) . 'includes/class-shapeoptions-uploads.php'; Shapeoptions_Uploads::unschedule(); delete_transient( 'shapeoptions_group_index' ); delete_transient( 'shapeoptions_dashboard_stats' ); } } endif;