wpcf7_captcha_url

The Contact Form 7 wpcf7 captcha url function.

Description

wpcf7_captcha_url( (string) $filename ); 

Parameters (1)

0. $filename (string)
The filename.

Usage

  1. if ( !function_exists( 'wpcf7_captcha_url' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7/modules/really-simple-captcha.php'; 
  3.  
  4. // The filename. 
  5. $filename = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wpcf7_captcha_url($filename); 
  9.  

Defined (1)

The function is defined in the following location(s).

/modules/really-simple-captcha.php  
  1. function wpcf7_captcha_url( $filename ) { 
  2. $url = trailingslashit( wpcf7_captcha_tmp_url() ) . $filename; 
  3.  
  4. if ( is_ssl() && 'http:' == substr( $url, 0, 5 ) ) { 
  5. $url = 'https:' . substr( $url, 5 ); 
  6.  
  7. return apply_filters( 'wpcf7_captcha_url', esc_url_raw( $url ) );