Thanks for reaching out!
Unfortunately, I do not have an exact example code for this particular task. However, the hook you are using woocommerce_process_product_meta
expects 3 parameters so you should be using the hook like this –
add_action( 'woocommerce_process_product_meta', 'wpa104760_default_price', 10, 3 );
Ref: https://hookr.io/actions/woocommerce_process_product_meta/
This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.
I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.
You can also visit the WooCommerce Facebook group or the #developers
channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.
If you need a paid solution, you can consider taking help from one of our partner’s website.
Thank you ??
]]>We’ve not heard back from you in a while, so I’m marking this thread as resolved.
Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.
Thank you ??
]]>