wpcf7_is_number

The Contact Form 7 wpcf7 is number function.

Description

wpcf7_is_number( (number) $number ); 

Parameters (1)

0. $number (number)
The number.

Usage

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

Defined (1)

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

/includes/formatting.php  
  1. function wpcf7_is_number( $number ) { 
  2. $result = is_numeric( $number ); 
  3. return apply_filters( 'wpcf7_is_number', $result, $number );