jetpack_verification_print_meta

The Jetpack by WordPress.com jetpack verification print meta function.

Description

jetpack_verification_print_meta(); 

Usage

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

Defined (1)

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

/modules/verification-tools/blog-verification-tools.php  
  1. function jetpack_verification_print_meta() { 
  2. $verification_services_codes = get_option( 'verification_services_codes' ); 
  3. if ( is_array( $verification_services_codes ) ) { 
  4. $ver_output = "<!-- Jetpack Site Verification Tags -->\n"; 
  5. foreach ( jetpack_verification_services() as $name => $service ) { 
  6. if ( is_array( $service ) && !empty( $verification_services_codes["$name"] ) ) { 
  7. $ver_tag = sprintf( '<meta name="%s" content="%s" />', esc_attr( $service["key"] ), esc_attr( $verification_services_codes["$name"] ) ); 
  8. /** 
  9. * Filter the meta tag template used for all verification tools. 
  10. * @module verification-tools 
  11. * @since 3.0.0 
  12. * @param string $ver_tag Verification Tool meta tag. 
  13. */ 
  14. $ver_output .= apply_filters( 'jetpack_site_verification_output', $ver_tag ); 
  15. $ver_output .= "\n"; 
  16. echo $ver_output;