• Resolved chrillep

    (@chrillep)


    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

    (@mrclayton)

    Hi @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

    Kind regards,

    • This reply was modified 6 years, 7 months ago by Clayton R.
    Thread Starter chrillep

    (@chrillep)

    that’s great! thank you.

    Thread Starter chrillep

    (@chrillep)

    ooh btw i couldn’t find any link that refers to https://docs.paymentplugins.com/wc-braintree/api/
    on

    https://wordpress.paymentplugins.com
    nor

    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.