Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

woocommerce sql query pulls products from category

SELECT * from `wp_term_relationships` where term_taxonomy_id=$subcatId and object_id in(select ID from `wp_posts` where `post_type`='product' and post_status='publish' and ID=wp_term_relationships.object_id) LIMIT 0,15000000
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #woocommerce #sql #query #pulls #products #category
ADD COMMENT
Topic
Name
8+8 =