Title: support pre_http_request in plugin
Last modified: March 28, 2023

---

# support pre_http_request in plugin

 *  [Mansour JabinPour – منصور جبین پور](https://wordpress.org/support/users/mansourjabin/)
 * (@mansourjabin)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/support-pre_http_request-in-plugin/)
 * 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.
 *     ```wp-block-code
       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.

 * ![](https://s.w.org/plugins/geopattern-icon/log-http-requests.svg)
 * [Log HTTP Requests](https://wordpress.org/plugins/log-http-requests/)
 * [Support Threads](https://wordpress.org/support/plugin/log-http-requests/)
 * [Active Topics](https://wordpress.org/support/plugin/log-http-requests/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/log-http-requests/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/log-http-requests/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Mansour JabinPour – منصور جبین پور](https://wordpress.org/support/users/mansourjabin/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/support-pre_http_request-in-plugin/)
 * Status: not a support question