Title: API by Language
Last modified: August 29, 2017

---

# API by Language

 *  Resolved [thefrenchcandlecompany](https://wordpress.org/support/users/thefrenchcandlecompany/)
 * (@thefrenchcandlecompany)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/api-by-language/)
 * Hi,
 * I’ve seen on your main site you have some logic for changing the list ID.
    [https://support.saintsystems.com/hc/en-us/articles/214034483-Changing-the-list-based-on-custom-logic](https://support.saintsystems.com/hc/en-us/articles/214034483-Changing-the-list-based-on-custom-logic)
 * However, as the list is retrieved from Mailchimp via the API key I can’t simply
   changed the list ID. Would I be correct in thinking I’d need to also change the
   API key for the corresponding list. I have two list, one for English speakers
   and one for French speakers.
 * Any ideas, please?
 * Thanks

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

 *  Thread Starter [thefrenchcandlecompany](https://wordpress.org/support/users/thefrenchcandlecompany/)
 * (@thefrenchcandlecompany)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/api-by-language/#post-9451365)
 * Sorry, I meant subscription email account. Can I set that at run-time using your
   example code and if so what is the array name for email account and list name?
 * Thanks
 *  Plugin Author [Saint Systems](https://wordpress.org/support/users/saintsystems/)
 * (@saintsystems)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/api-by-language/#post-9452177)
 * If you want to simply subscribe the customer to a different list based on language,
   then you would just change the list id based on your custom logic just like in
   the help article you referenced. If you want to subscribe the user to a different
   list in a different MailChimp account, you cannot currently do that as it would
   require a different API Key and MailChimp list and we do not currently provide
   a hook to override the API Key.
 * _[ [Signature deleted](https://wordpress.org/support/guidelines/#avoid-signatures)]_
    -  This reply was modified 8 years, 9 months ago by [Saint Systems](https://wordpress.org/support/users/saintsystems/).
    -  This reply was modified 8 years, 1 month ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).

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

The topic ‘API by Language’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-mailchimp/assets/icon.svg?rev=1495270)
 * [WP WooCommerce Mailchimp](https://wordpress.org/plugins/woocommerce-mailchimp/)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-mailchimp/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-mailchimp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-mailchimp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-mailchimp/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [Saint Systems](https://wordpress.org/support/users/saintsystems/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/api-by-language/#post-9452177)
 * Status: resolved