Loking into the core code, this shortcode supports category filtering. You’ll need to use this format:
[recent_products per_page="12" columns="3" category="dresses"]
Specify the product category slug in the category attribute. For multiple categories, use comma separator.
[recent_products per_page="12" columns="3" category="dresses,pants"]
Regards,
Kharis