There is no function for this. you can study how it works in
I'm trying to automatically add a product to the wishlist if certain criteria are met from my child theme. Is there a simple function or action I can call or other easy way to do that from my child theme?
Thank you for your help.