videopress_is_valid_guid

Validate user-supplied guid values against expected inputs.

Description

videopress_is_valid_guid( (string) $guid ); 

Parameters (1)

0. $guid (string)
Video identifier

Usage

  1. if ( !function_exists( 'videopress_is_valid_guid' ) ) { 
  2. require_once '/modules/videopress/utility-functions.php'; 
  3.  
  4. // video identifier 
  5. $guid = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = videopress_is_valid_guid($guid); 
  9.  

Defined (1)

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

/modules/videopress/utility-functions.php  
  1. function videopress_is_valid_guid( $guid ) { 
  2. if ( ! empty( $guid ) && is_string( $guid ) && strlen( $guid ) === 8 && ctype_alnum( $guid ) ) { 
  3. return true; 
  4. return false;