• Resolved dmajwool

    (@dmajwool)


    Angelo replied:

    “Sorry for the delay on this, I have not fully tested this snippet yet but you can try this custom hook/filter [HTML] function em_paypal_checkout_return( $text ){ $text = “https://your-domain.com/thank-you“; return $text ; } add_filter( ‘option_em_paypal_checkout_return’, ’em_paypal_checkout_return’, 100, 1 ); [/html] As for where to paste the custom snippet – http://wp-events-plugin.com/tutorials/how-to-safely-add-php-code-to-wordpress/

    Using the third option in your help file I have created a custom plugin which is now active in my site. The plugin folder has only one file in it – myplugin.php – which looks like this:

    {php opening identifier}

    /*
    Plugin Name: Events Manager DW PayPal Return URL
    Plugin URI: http://mydomain.com
    Description: Gives a return URL for a Thank You after an Events Manager PayPal payment is complete
    Version: 1.0
    Depends: Events Manager Pro
    Author: DW
    Author URI: http://mydomain.com
    */

    function em_paypal_checkout_return( $text ){ $text = “https://www.mydomain.com/paypal-payment-confirmation/”;
    return $text ; } add_filter( ‘option_em_paypal_checkout_return’, ’em_paypal_checkout_return’, 100, 1 );

    {php closing identifier}

    But this function is either not being called, or is failing for some reason. Please can you help.

    Thank you 🙂

The topic ‘PayPal_Checkout return URL’ is closed to new replies.