prefix . 'astr_pages_history', $wpdb->prefix . 'astr_posts_history', $wpdb->prefix . 'astr_plugins_history', $wpdb->prefix . 'astr_customizer_snapshots', $wpdb->prefix . 'astr_customizer_settings', $wpdb->prefix . 'astr_customizer_snapshot_settings', $wpdb->prefix . 'astr_customizer_snapshot_meta', ]; // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching $wpdb->query( 'SET FOREIGN_KEY_CHECKS = 0' ); foreach ( $astr_tables as $astr_table ) { // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared, WordPress.DB.DirectDatabaseQuery.SchemaChange $wpdb->query( "DROP TABLE IF EXISTS {$astr_table}" ); } // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching $wpdb->query( 'SET FOREIGN_KEY_CHECKS = 1' ); delete_option( 'astr_notification_emails' ); delete_option( 'astr_notification_events' ); delete_option( 'astr_email_delay' ); delete_option( 'astr_delete_on_uninstall' ); delete_option( 'astr_enable_cpt_revisions' ); delete_option( 'astr_db_version' ); delete_option( 'astr_initial_content_imported' ); delete_option( 'astr_plugins_initialized' ); }