Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Bainternet

    (@bainternet)

    Nope WPML is not compatible.

    Thread Starter sireneweb

    (@sireneweb)

    Any plan for WPML Compatibility ?
    in previous version, shortcode works with WPML

    Plugin Author Bainternet

    (@bainternet)

    It was never planed to be WPML compatible.

    Thread Starter sireneweb

    (@sireneweb)

    if i get you the snippet code to implement, could you add in next version ?

    Plugin Author Bainternet

    (@bainternet)

    Maybe, I’ll take a look, send it over.

    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

    (@sireneweb)

    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.