jssb_add_to_statusboard

The Jetpack - Status Board jssb add to statusboard function.

Description

jssb_add_to_statusboard(); 

Usage

  1. if ( !function_exists( 'jssb_add_to_statusboard' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-status-board/jetpack-status-board.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = jssb_add_to_statusboard(); 
  7.  

Defined (1)

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

/jetpack-status-board.php  
  1. function jssb_add_to_statusboard() { 
  2. if ( empty( $_GET['page'] ) && $_GET['page'] ) 
  3. return false; 
  4.  
  5. $key = md5( get_settings('admin_email') ); 
  6. $sb_url = get_bloginfo( 'url' ) . '/jssb-stats/?jssb-verify=' . $key; 
  7.  
  8. wp_redirect( 'panicboard://?url='. urlencode( $sb_url ) . '&panel=graph'); 
  9. exit;