WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #47659, comment 2


Ignore:
Timestamp:
07/08/2019 02:51:16 AM (17 months ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #47659, comment 2

    initial v1  
    11Hi @flexithemes, welcome to WordPress Trac! Thanks for the ticket.
    22
    3 You can use the `requests-curl.after_request` hook to get access to `total_time` (where [source:tags/5.2.2/src/wp-includes/Requests/Transport/cURL.php?marks=426#L424 curl.after_request] is a Requests library hook, and the `requests-` prefix is added in [source:tags/5.2.2/src/wp-includes/class-wp-http-requests-hooks.php?marks=72#L43 WP_HTTP_Requests_Hooks::dispatch()] when mapping it to a native WordPress action.
     3You can use the `requests-curl.after_request` hook to get access to `total_time`, where [source:tags/5.2.2/src/wp-includes/Requests/Transport/cURL.php?marks=426#L424 curl.after_request] is a Requests library hook, and the `requests-` prefix is added in [source:tags/5.2.2/src/wp-includes/class-wp-http-requests-hooks.php?marks=72#L43 WP_HTTP_Requests_Hooks::dispatch()] when mapping it to a native WordPress action.
    44
    55Here's an example that works for me;