Determine if an IPN request is valid or not from PayPal.


/**
 * Filter if an ipn request is valid or not.
 *
 * @since 1.8.6.3
 *
 * @param bool           $r  true or false if the request is valid
 * @param array|WP_Error $fp remote post object from request to PayPal
 */
$r = apply_filters( 'pmpro_ipn_validate', $r, $fp );

Parameters

$r
bool
$fp
array|WP_Error

Return Value

true or false


Source

File: https://github.com/strangerstudios/paid-memberships-pro/blob/master/services/ipnhandler.php

View in Source Code