query( $wpdb->prepare( 'DROP TABLE IF EXISTS %i', $wpdb->prefix . $table ) ); } delete_option( 'webcalendar_wp_db_version' ); delete_option( 'webcal_single_event_pages' ); delete_option( 'webcal_google_maps_api_key' ); delete_option( 'webcal_delete_data_on_uninstall' ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery,WordPress.DB.DirectDatabaseQuery.NoCaching $wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s", 'webcal\_config\_%' ) ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery,WordPress.DB.DirectDatabaseQuery.NoCaching $wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s", 'webcal\_featured\_image\_%' ) ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery,WordPress.DB.DirectDatabaseQuery.NoCaching $wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s", 'webcal\_attachments\_%' ) ); } require_once WEBCALENDAR_WP_PATH . 'src/functions.php'; require_once WEBCALENDAR_WP_PATH . 'src/Plugin.php'; $plugin = new \WebCalendar\WP\Plugin(); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited -- local variable, not overriding global $plugin $plugin->run();