wpcf7_is_url

The Contact Form 7 wpcf7 is url function.

Description

wpcf7_is_url( $url ); 

Parameters (1)

0. $url
The url.

Usage

  1. if ( !function_exists( 'wpcf7_is_url' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7/includes/formatting.php'; 
  3.  
  4. // The url. 
  5. $url = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wpcf7_is_url($url); 
  9.  

Defined (1)

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

/includes/formatting.php  
  1. function wpcf7_is_url( $url ) { 
  2. $result = ( false !== filter_var( $url, FILTER_VALIDATE_URL ) ); 
  3. return apply_filters( 'wpcf7_is_url', $result, $url );