How to debug HTTP $options['hooks']->dispatch

By.

min read

My profile

Share this:

Example

$options['hooks']->dispatch('requests.after_request', [&$return, $req_headers, $req_data, $options]);

it translates so

do_action_ref_array( "requests-requests.after_request"

So in this case you can do:

add_action( 'requests-requests.after_request', 'ramon_debug', 10, 4 );

More info: https://developer.wordpress.org/reference/classes/wp_http_requests_hooks/dispatch/

Share this:

Leave a Reply

Your email address will not be published. Required fields are marked *