Title: programmatically set relations
Last modified: August 18, 2017

---

# programmatically set relations

 *  [teod2](https://wordpress.org/support/users/teod2/)
 * (@teod2)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/programmatically-set-relations/)
 * Hi,
    i’m curious about how difficult it would be to set the language relations
   between woocommerce products with this lovely plugin programmatically, instead
   manually using a select box.
 * I should be able to create my own plugin which extends multisite language switcher,
   but at the moment i have no clue about how this plugin works and what Kind of
   Task it would be.
 * What’s your opinion about this topic?
 * Best regards!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Dennis Ploetner](https://wordpress.org/support/users/realloc/)
 * (@realloc)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/programmatically-set-relations/#post-9423613)
 * Every relation is an array that is stored as an option. I don’t think that this
   could be very difficult to implement.
 * Cheers,
    Dennis

Viewing 1 replies (of 1 total)

The topic ‘programmatically set relations’ is closed to new replies.

 * ![](https://ps.w.org/multisite-language-switcher/assets/icon-256x256.png?rev=
   2793358)
 * [Multisite Language Switcher](https://wordpress.org/plugins/multisite-language-switcher/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/multisite-language-switcher/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/multisite-language-switcher/)
 * [Active Topics](https://wordpress.org/support/plugin/multisite-language-switcher/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multisite-language-switcher/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multisite-language-switcher/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Dennis Ploetner](https://wordpress.org/support/users/realloc/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/programmatically-set-relations/#post-9423613)
 * Status: not resolved