Title: migrate settings
Last modified: October 21, 2019

---

# migrate settings

 *  Resolved [chrillep](https://wordpress.org/support/users/chrillep/)
 * (@chrillep)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/migrate-settings/)
 * hey, if id like to migrate all settings from v2 -> v3 programmatically.
    which
   are the option names i have to use?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/migrate-settings/#post-12051184)
 * Hi [@chrillep](https://wordpress.org/support/users/chrillep/),
 * The settings are automatically migrated when the admin updates the plugin from
   any version less than 3.0.0; so if you wanted the plugin to do it for you, you
   could just change the WP option name of `braintree_wc_version` to `2.6.65`.
 * If you must do it programatically, look at file `woo-payment-gateway/includes/
   updates/update-3.0.0.php`. That file has all the mappings from the old option
   names to the new ones. All new option names follow the WC naming convention.
 * Example:
    _Apple Settings ID = braintree\_applepay_ _option name = woocommerce\
   _braintree\_applepay\_settings_
 * We provide a developer documentation site that has all the hook, filters, etc
   that you may find interesting.
 * [Developer Docs](https://docs.paymentplugins.com/wc-braintree/api/)
 * Kind regards,
    -  This reply was modified 6 years, 8 months ago by [Clayton R](https://wordpress.org/support/users/mrclayton/).
 *  Thread Starter [chrillep](https://wordpress.org/support/users/chrillep/)
 * (@chrillep)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/migrate-settings/#post-12051251)
 * that’s great! thank you.
 *  Thread Starter [chrillep](https://wordpress.org/support/users/chrillep/)
 * (@chrillep)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/migrate-settings/#post-12052538)
 * ooh btw i couldn’t find any link that refers to [https://docs.paymentplugins.com/wc-braintree/api/](https://docs.paymentplugins.com/wc-braintree/api/)
   
   on
 * [https://wordpress.paymentplugins.com](https://wordpress.paymentplugins.com)
   
   nor
 * [https://support.paymentplugins.com](https://support.paymentplugins.com)
 * just FYI since it’s a good referens 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘migrate settings’ is closed to new replies.

 * ![](https://ps.w.org/woo-payment-gateway/assets/icon-256x256.png?rev=2142799)
 * [Payment Plugins Braintree For WooCommerce](https://wordpress.org/plugins/woo-payment-gateway/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-payment-gateway/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-payment-gateway/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-payment-gateway/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-payment-gateway/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-payment-gateway/reviews/)

## Tags

 * [settings](https://wordpress.org/support/topic-tag/settings/)

 * 3 replies
 * 2 participants
 * Last reply from: [chrillep](https://wordpress.org/support/users/chrillep/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/migrate-settings/#post-12052538)
 * Status: resolved