The contact-form-7 wpcf7 log remote request hook.
Published Date - July 22, 2023
$log = apply_filters( 'wpcf7_log_remote_request',
$log, $url, $request, $response
);
$log
$url
$request
$response
The following example is for adding a hook callback.
// define the wpcf7_log_remote_request callback
function custom_wpcf7_log_remote_request( $log, $url, $request, $response ){
//custom code here
return $log
}
//add the action
add_filter('wpcf7_log_remote_request', 'custom_wpcf7_log_remote_request', 10, 4)
The filter is defined in the following location(s).
contact-form-7/includes/functions.php
$log = apply_filters( 'wpcf7_log_remote_request',
$log, $url, $request, $response
);