query( $wpdb->prepare( 'DROP TABLE IF EXISTS %i', $wpdb->prefix . 'acpw_events' ) ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.DirectDatabaseQuery.SchemaChange -- Explicit opt-in uninstall cleanup of this plugin's own tables, behind the WordPress uninstall guard. $wpdb->query( $wpdb->prepare( 'DROP TABLE IF EXISTS %i', $wpdb->prefix . 'acpw_carts' ) ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.DirectDatabaseQuery.SchemaChange -- Explicit opt-in uninstall cleanup of this plugin's own tables, behind the WordPress uninstall guard. $wpdb->query( $wpdb->prepare( 'DROP TABLE IF EXISTS %i', $wpdb->prefix . 'acpw_rates' ) ); delete_option( 'acpw_settings' ); delete_option( 'acpw_db_version' ); delete_option( 'acpw_recovery_secret' ); delete_option( 'acpw_install_error' ); delete_option( 'acpw_last_cleanup' ); delete_option( 'acpw_last_sweep' ); foreach ( array( 'acpw_migrated_legacy', 'acpw_upgrade_notice', 'acpw_migration_error' ) as $acpw_option ) { delete_option( $acpw_option ); }