The contact-form-7 wpcf7 captcha url hook.
Published Date - July 22, 2023
return apply_filters( 'wpcf7_captcha_url', sanitize_url( $url ) );
$sanitize_url
The following example is for adding a hook callback.
// define the wpcf7_captcha_url callback
function custom_wpcf7_captcha_url( $sanitize_url ){
//custom code here
return $sanitize_url
}
//add the action
add_filter('wpcf7_captcha_url', 'custom_wpcf7_captcha_url', 10, 1)
The filter is defined in the following location(s).
contact-form-7/modules/really-simple-captcha.php
return apply_filters( 'wpcf7_captcha_url', sanitize_url( $url ) );