WordPress action hook · part of WordPress core
http_api_curl
A WordPress core action that 5 plugins also fire themselves, running on 20+ sites between them.
How to use http_api_curl
It's an action: your callback runs at that point. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'http_api_curl', function( $handle, $args, $url ) {
// Your code runs here.
}, 10, 3 );Argument names come from LinkTender's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
This hook is fired by WordPress core too. Official reference on developer.wordpress.org →
5 plugins that fire http_api_curl
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
LinkTender10+ installs
do_action_ref_array( 'http_api_curl', array( &$handle, $args, $url ) )includes/class-linktender-checker.php:487 -
AdFever for WordPress10+ installs
do_action_ref_array( 'http_api_curl', array(&$handle) )lib/wp-compat/http.php:1315 -
Lucid Lab Media & Products CleanupFewer than 10 installs
do_action_ref_array( 'http_api_curl', array( &$handle, $args, $url ) )includes/class-lucidlab-mpc-crawl-http.php:236 -
Blinkimg Image Optimizer: Convert to WebP & AVIF, Compress Images, Same QualityFewer than 10 installs
do_action_ref_array( 'http_api_curl', array( &$handle, $parsed, $url ) )includes/class-http.php:1385 -
OctoPressFewer than 10 installs
do_action( 'http_api_curl', $handle, $args, $url )src/Foundation/Runtime/RequestTickDispatcher.php:179
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.