jetpack_verification_get_code

The Jetpack by WordPress.com jetpack verification get code function.

Description

jetpack_verification_get_code( $code ); 

Parameters (1)

0. $code
The code.

Usage

  1. if ( !function_exists( 'jetpack_verification_get_code' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/verification-tools/blog-verification-tools.php'; 
  3.  
  4. // The code. 
  5. $code = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = jetpack_verification_get_code($code); 
  9.  

Defined (1)

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

/modules/verification-tools/blog-verification-tools.php  
  1. function jetpack_verification_get_code( $code ) { 
  2. $pattern = '/content=["\']?([^"\' ]*)["\' ]/is'; 
  3. preg_match( $pattern, $code, $match ); 
  4. if ( $match ) { 
  5. return urldecode( $match[1] ); 
  6. } else { 
  7. return false;