Title: Automatically Enable Payment Method
Last modified: October 4, 2024

---

# Automatically Enable Payment Method

 *  Resolved [kemalkautsar](https://wordpress.org/support/users/kemalkautsar/)
 * (@kemalkautsar)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/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)

 *  [ckadenge (woo-hc)](https://wordpress.org/support/users/ckadenge/)
 * (@ckadenge)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/automatically-enable-payment-method/#post-18056449)
 * Hi [@kemalkautsar](https://wordpress.org/support/users/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](https://www.facebook.com/groups/advanced.woocommerce/)
   or the [WooCommerce Community Slack](https://woocommerce.com/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)

The topic ‘Automatically Enable Payment Method’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [Coding](https://wordpress.org/support/topic-tag/coding/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)
 * [payment method](https://wordpress.org/support/topic-tag/payment-method/)

 * 1 reply
 * 2 participants
 * Last reply from: [ckadenge (woo-hc)](https://wordpress.org/support/users/ckadenge/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/automatically-enable-payment-method/#post-18056449)
 * Status: resolved