Plugin: Woocommerce – query list of product titles by category in AJAX
-
I want to query Woocommerce from my themes main.js file (/themes/my_theme/js/main.js) and return a simple array or JSON object of product titles from a specific category ID.
I just need the product titles, not the HTML, not the sidebar links, or product objects. Just the titles. How do I do this?
I looked into using ‘/wp-admin/admin-ajax.php’ but wasn’t sure which action to use. Can I just write a custom PHP script in my /inc folder using global $wpdb?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Plugin: Woocommerce – query list of product titles by category in AJAX’ is closed to new replies.