wpcf7_captcha_url

The contact-form-7 wpcf7 captcha url hook.

Published Date - July 22, 2023

Description

return apply_filters( 'wpcf7_captcha_url', sanitize_url( $url ) );

Parameters

  1. $sanitize_url


Usage

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)

Defined

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 ) );