Home / Admin / Simple HTTP Debug
Duplicate Snippet

Embed Snippet on Your Site

Simple HTTP Debug

Extend default debug to log outgoing HTTP Requests.

Code Preview
php
<?php
// Simple HTTP Debug / Kiri Vadivelu / 2026
function simple_http_debug( $response, $context, $class, $parsed_args, $url ) {
    error_log( 'http_debug: '.$url );
}
add_action('http_api_debug', 'simple_http_debug', 10, 5);

Comments

Add a Comment