ConvertPlug allows you to create Language Specific Popups to make sure you are serving the right audiences.

In order to proceed, first you need to create a new popup for your specific language.

You will need the things mentioned below:

  • WPML installed on your site.
  • Your style ID – You can find it here in your style customizer screen –  http://goo.gl/EOXUlD
  • Your language code – WPML -> Languages -> Edit languages screen Here- http://goo.gl/KCHmRq

Add below code to your theme’s functions.php file,

function cp_callback_function( $display, $style_id ) {
     
     if( $display ) {
        // Replace style id with your style ID
        if( $style_id == 'cp_id_75944' ) {
     
            // get current language code
            $language_code = ICL_LANGUAGE_CODE;
                    
                    // replace fr with your language code 
            if( $language_code == 'fr' ) {
                $display = true;
            } else {
                $display = false;
            }
     
        }
    }
 
    return $display;
}
add_filter( 'cp_target_page_settings', 'cp_callback_function', 10, 3 );