BACK TO DIRECTORY

Log HTTP Requests

by Matt Gibbs

5.0
(15 ratings)

Log and view all WP HTTP requests

How long do [core / plugin / theme] update checks take to run? What data about my site is being sent out? What about all those ajax requests? The answers to these questions are just a few clicks away.

This plugin logs all WP_HTTP requests and displays them in a table listing for easy viewing. It also stores the runtime of each HTTP request.

Available Hooks

Customize the length (in days) before older log items are removed:

add_filter( 'lhr_expiration_days', function( $days ) {
    return 7; // default = 1
});

Don’t log items from a specific hostname:

add_filter( 'lhr_log_data', function( $data ) {
    if ( false !== strpos( $data['url'], 'wordpress.org' ) ) {
        return false;
    }
    return $data;
});

In the above example, the $data array keys correspond to columns within the lhr_log database table.

Important Links

Plugin Details

Active Installs
2K+
Total Downloads
80,411
Version
1.5.0
Requires WP
5.0
Requires PHP
Tested Up To
6.8.8
Added
2017-07-19
Last Updated
2025-11-11 1:14pm GMT

Ratings

5
15
4
0
3
0
2
0
1
0