postmeta ); $afrihex_hpos = $wpdb->prefix . 'wc_orders_meta'; if ( $wpdb->get_var( $wpdb->prepare( 'SHOW TABLES LIKE %s', $afrihex_hpos ) ) === $afrihex_hpos ) { $afrihex_tables[] = $afrihex_hpos; } foreach ( $afrihex_tables as $afrihex_table ) { $wpdb->query( $wpdb->prepare( "DELETE FROM %i WHERE meta_key IN ($afrihex_in)", array_merge( array( $afrihex_table ), $afrihex_keys ) ) ); } // phpcs:enable }