• Resolved kemalkautsar

    (@kemalkautsar)


    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)
  • Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi @kemalkautsar,

    Thank you for reaching out.

    For reference, this particular forum is meant for general support with the core functionality of WooCommerce itself.

    For development and custom coding questions, it’s best to ask for insight related to those on either the?WooCommerce Advanced Facebook group?or the?WooCommerce Community Slack. Many of our developers hang out there and will be able to offer insights into your question.
    I wish I could help more, but hopefully, this gets you going in the right direction to get some further insight/information.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.