• Hi buddy,

    Your plugin is amazing. I’m really grateful that you designed this plugin.

    However, there is an issue that it doesn’t log pre_http_request and I need it to be logged.

    I added the following code to the plugin for myself.

    add_filter( 'pre_http_request', function ( $response, $parsed_args, $url ) {
    
    	if ( ! $response ) {
    		return false;
    	}
    
    	$this->capture_request( $response, '', '', $parsed_args, $url );
    
    	return $response;
    
    }, PHP_INT_MAX  , 5 );

    I just wanted to let you know that if you’re interested, please consider adding it to the update of your plugin.

  • The topic ‘support pre_http_request in plugin’ is closed to new replies.