'ethebo_property', 'post_status' => 'any', 'numberposts' => -1, 'fields' => 'ids', ) ); foreach ( $ethebo_ids as $ethebo_id ) { wp_delete_post( $ethebo_id, true ); } $ethebo_terms = get_terms( array( 'taxonomy' => 'ethebo_type', 'hide_empty' => false, 'fields' => 'ids' ) ); if ( ! is_wp_error( $ethebo_terms ) ) { foreach ( $ethebo_terms as $ethebo_term_id ) { wp_delete_term( $ethebo_term_id, 'ethebo_type' ); } } // phpcs:ignore WordPress.DB.DirectDatabaseQuery, WordPress.DB.PreparedSQL.NotPrepared -- Removes the plugin's own bookings table. $wpdb->query( $wpdb->prepare( 'DROP TABLE IF EXISTS %i', $wpdb->prefix . 'ethebo_bookings' ) ); foreach ( array( 'ethebo_settings', 'ethebo_db_version', 'ethebo_cron_key', 'ethebo_flush_rewrite', 'ethebo_last_pay_error', 'ethebo_last_sync_all', 'ethebo_plain_ical', 'ethebo_rewrite_slugs' ) as $ethebo_option ) { delete_option( $ethebo_option ); }