jetpack_verification_tool_box

The Jetpack by WordPress.com jetpack verification tool box function.

Description

jetpack_verification_tool_box(); 

Usage

  1. if ( !function_exists( 'jetpack_verification_tool_box' ) ) { 
  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_tool_box(); 
  7.  

Defined (1)

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

/modules/verification-tools/blog-verification-tools.php  
  1. function jetpack_verification_tool_box() { 
  2. global $current_user; 
  3.  
  4. /** 
  5. * Decide whether Site Verification tools be added to the Tools menu. 
  6. * @module verification-tools 
  7. * @since 3.0.0 
  8. * @param bool true Should the Site Verification tools be added to the Tools menu. 
  9. */ 
  10. if ( ! apply_filters( 'jetpack_enable_site_verification', true ) ) 
  11. return; 
  12.  
  13. $list = array(); 
  14. foreach ( jetpack_verification_services() as $key => $service ) { 
  15. $list[] = '<a href="' . esc_url( $service['url'] ) . '">' . esc_html( $service['name'] ) . '</a>'; 
  16. $last = array_pop( $list ); 
  17.  
  18. if ( current_user_can( 'manage_options' ) ) { 
  19. echo '<div class="jp-verification-tools card"><h3 class="title">' . __( 'Website Verification Services' , jetpack ) . ' <a href="http://support.wordpress.com/webmaster-tools/" target="_blank">(?)</a></h3>'; 
  20. echo '<p>' . sprintf( esc_html( __( 'Enter your meta key "content" value to verify your blog with %s' , jetpack ) ), implode( ', ', $list ) ) . ' ' . __( 'and' , jetpack ) . ' ' . $last . '.</p>'; 
  21. echo '</div>';