I’m developing a WordPress website where I’m adding several new features in the backoffice.
In some cases I’m adding new admin pages where I’m using WP_List_Table class.
Usually under the top of the page I’ve some dropdowns to select data that I will use to filter my data.
And here is where it starts my problem with WPML
For exemple:
In one dropdown I’m using ajax to fill it with data. My ajax call is using the following SQL
SELECT pm.meta_value as email, i.order_id as nr_encomenda
FROM 1kjpf_posts AS p
INNER JOIN 1kjpf_postmeta AS pm ON p.ID = pm.post_id
INNER JOIN 1kjpf_woocommerce_order_items AS i ON p.ID = i.order_id
INNER JOIN 1kjpf_woocommerce_order_itemmeta AS im ON i.order_item_id = im.order_item_id
INNER JOIN 1kjpf_woocommerce_order_itemmeta AS td ON i.order_item_id = td.order_item_id
WHERE p.post_status NOT IN ('wc-cancelled', 'trash')
AND pm.meta_key IN ('_billing_email')
AND im.meta_key IN ('_product_id', '_variation_id')
AND im.meta_value = 990
AND td.meta_key IN ('tour_date')
AND td.meta_value = '2023-11-05'
L'argomento “[Chiuso] I'm developing a custom WordPress website with custom coding and I have issues with WPML” è chiuso ai nuovi commenti.