-
Notifications
You must be signed in to change notification settings - Fork 85
http_response
github-actions[bot] edited this page Oct 6, 2025
·
1 revision
/**
* Callback function for the 'http_response' filter.
*
* @param mixed $response
* @param mixed $parsed_args
* @param string $url
* @return mixed The filtered value.
*/
function my_http_response_callback( $response, $parsed_args, string $url ) {
// Your code here.
return $response;
}
add_filter( 'http_response', 'my_http_response_callback', 10, 3 );
$response
-
$parsed_args
Other variable names:$args
-
string
$url
apply_filters( 'http_response', $response, $parsed_args, $url )
\apply_filters( 'http_response', $response, $args, $url )
Follow @[email protected] for updates and news.