• Resolved adrianomicci

    (@adrianomicci)


    Hi, I’m trying to hook valid-paypal-standard-ipn-request but it doesn’t work.
    I’ve added this code to functions.php in my theme, but it doesn’t trigger.

    add_action( ‘valid-paypal-standard-ipn-request’, ‘valid_paypal_standard_ipn_request_custom_callback’ );
    function action_function_name_3322( $posted ){
    file_put_contents( MY_ABS_PATH . “/debug.log”, “valid_paypal_standard_ipn_request_custom_callback\n” , FILE_APPEND | LOCK_EX );
    }
    Any suggestion? Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi there,

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    You can also visit the WooCommerce Facebook Community group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Thanks.

    Thread Starter adrianomicci

    (@adrianomicci)

    Thank you, I’m trying to ask via Slack and Facebook, I’ll reply here if I got anything.

    Thread Starter adrianomicci

    (@adrianomicci)

    I’ve solved thanks to some suggestions got on slack! ??
    I’ve putted hook in a custom plugin with priority -1.

    $this->loader->add_action('valid-paypal-standard-ipn-request', $plugin_public, 'valid_paypal_standard_ipn_request_callback', -1, 1);

    I hope this can be useful to someone ??

    • This reply was modified 3 years, 3 months ago by adrianomicci.
    Mirko P.

    (@rainfallnixfig)

    Great to hear you solved this! Thanks for sharing the solution here.

    If you have questions on the default functionality of core WooCommerce please feel free to open a new thread.

    Have a good one!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PayPal IPN Hook Doesn’t Trigger’ is closed to new replies.