Viewing 4 replies - 31 through 34 (of 34 total)
  • Thread Starter whitelily85

    (@whitelily85)

    I added the code to the funtions.php of my theme, but it’s giving me an error on this line:

    $link = $link . ‘?mailpoet_router=’.$_REQUEST[‘mailpoet_router’];

    Plugin Author sbouey

    (@sbouey)

    the quote was removed ,

    function falang_get_translated_url( $link, $language){
    	if (isset($_REQUEST) && isset($_REQUEST['mailpoet_router'])){
    		$link = $link . '?mailpoet_router='.$_REQUEST['mailpoet_router'];
    		$link = $link . '&endpoint='.$_REQUEST['endpoint'];
    		$link = $link . '&action='.$_REQUEST['action'];
    		$link = $link . '&data='.$_REQUEST['data'];
    	}
    	return $link;
    }
    
    add_filter( 'falang_get_translated_url', 'falang_get_translated_url',10,2 );

    Here is the right code

    • This reply was modified 1 year, 2 months ago by sbouey. Reason: filter missing
    • This reply was modified 1 year, 2 months ago by sbouey.
    Thread Starter whitelily85

    (@whitelily85)

    Great, I added the code and now everything works smoother! Again many thanks for all your help with this!

    Plugin Author sbouey

    (@sbouey)

    Great, i will make a documentation on this , i send you the link for review it when it’s done. i will probably add this code in the Falang Pro version to have it working without extra code in function.php

    Stéphane

Viewing 4 replies - 31 through 34 (of 34 total)
  • The topic ‘Falang conflicting with MailPoet’ is closed to new replies.