Automatically Enable Payment Method
-
Hi Woocommerce Developers,
I am creating a plugin where whenever a new user registered on our site, a new sub-site(via multisite) will be assigned to their account. Inside that sub-site, my plugin will then automatically import the products inside that subsite.
Now, what i want to achieve is: how do I programmatically enable a payment method (e.g. Direct Transfer) upon a sub-site creation? I’ve searched around your developer’s documentation and couldn’t find a way to do that. Manually enabling it by assigning an actual site admin is not an answer I’m afraid.
Thanks so much for your help!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.