Title: WPML Compatibility
Last modified: August 22, 2016

---

# WPML Compatibility

 *  Resolved [sireneweb](https://wordpress.org/support/users/sireneweb/)
 * (@sireneweb)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wpml-compatibility-37/)
 * Hi,
    i would like to know if the last version of Shortcode UI is compatible with
   WPML because in your code you’re using MYSQL Request instead WP_Query, query_posts
   or Get_post to get the list of shortcode UI.
 * Or your mysql request isn’t compatible with WPML because you don’t display results
   based on the language.
 * Actually you extract all shortcode, it would be better if you extract only shortcode
   based on the current language
 * Please refers to doc :
    [http://wpml.org/documentation/support/editing-wpmls-languages-table/](http://wpml.org/documentation/support/editing-wpmls-languages-table/)
 * [https://wordpress.org/plugins/shortcodes-ui/](https://wordpress.org/plugins/shortcodes-ui/)

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

 *  Plugin Author [Bainternet](https://wordpress.org/support/users/bainternet/)
 * (@bainternet)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/wpml-compatibility-37/#post-5318285)
 * Nope WPML is not compatible.
 *  Thread Starter [sireneweb](https://wordpress.org/support/users/sireneweb/)
 * (@sireneweb)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/wpml-compatibility-37/#post-5318286)
 * Any plan for WPML Compatibility ?
    in previous version, shortcode works with 
   WPML
 *  Plugin Author [Bainternet](https://wordpress.org/support/users/bainternet/)
 * (@bainternet)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/wpml-compatibility-37/#post-5318287)
 * It was never planed to be WPML compatible.
 *  Thread Starter [sireneweb](https://wordpress.org/support/users/sireneweb/)
 * (@sireneweb)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/wpml-compatibility-37/#post-5318288)
 * if i get you the snippet code to implement, could you add in next version ?
 *  Plugin Author [Bainternet](https://wordpress.org/support/users/bainternet/)
 * (@bainternet)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/wpml-compatibility-37/#post-5318289)
 * Maybe, I’ll take a look, send it over.
 *  [vanhoutehanene](https://wordpress.org/support/users/vanhoutehanene/)
 * (@vanhoutehanene)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/wpml-compatibility-37/#post-5318348)
 * To make it compatible with wpml, you could make one of these changes ih the shortcode-
   maker.php file, in the function get_sc_content($pid) :
 * – At the beginning of the function, you can add this code :
 *     ```
       // If function from wpml exist, modify $pid
       	if (function_exists(icl_object_id)){
       		$pid = icl_object_id($pid,'ba_sh',true);
       	}
       ```
   
 * – **Or** (in the same file and function), you can replace this line
    `return 
   apply_filters( 'shortcodes_ui_raw_content', $sc_content);` **in ** `return apply_filters('
   shortcodes_ui_raw_content', $sc_content, $pid);` The developper will be able 
   to make an add_filter and modify the request as he want with the $pid passed 
   in arguuments.
 *  Thread Starter [sireneweb](https://wordpress.org/support/users/sireneweb/)
 * (@sireneweb)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/wpml-compatibility-37/#post-5318349)
 * Bainternet, maybe could you add this fix in next release ?

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

The topic ‘WPML Compatibility’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/shortcodes-ui_dbeef6.svg)
 * [ShortCodes UI](https://wordpress.org/plugins/shortcodes-ui/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcodes-ui/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcodes-ui/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcodes-ui/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcodes-ui/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcodes-ui/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [sireneweb](https://wordpress.org/support/users/sireneweb/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/wpml-compatibility-37/#post-5318349)
 * Status: resolved