22
Building custom WP_Queries or database queries is likely to break your … are similar to WordPress get_posts and WP_Query . … Accepts an integer: post ID of the product parent. … an array: Limit result to products assigned to specific categories by slug. … Accepts an int: The quantity of a product in stock.