Forum Replies Created

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)