jetpack_show_jumpstart

Only show Jump Start on first activation.

Description

jetpack_show_jumpstart(); 

Any option jumpstart other than new connection will hide it.

The option can be of 4 things, and will be stored as such: new_connection : Brand new connection - Show jumpstart_activated : Jump Start has been activated - dismiss jetpack_action_taken: Manual activation of a module already happened - dismiss jumpstart_dismissed : Manual dismissal of Jump Start - dismiss


Usage

  1. if ( !function_exists( 'jetpack_show_jumpstart' ) ) { 
  2. require_once '/_inc/lib/admin-pages/class.jetpack-react-page.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = jetpack_show_jumpstart(); 
  7.  

Defined (1)

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

/_inc/lib/admin-pages/class.jetpack-react-page.php  
  1. function jetpack_show_jumpstart() { 
  2. if ( ! Jetpack::is_active() ) { 
  3. return false; 
  4. $jumpstart_option = Jetpack_Options::get_option( 'jumpstart' ); 
  5.  
  6. $hide_options = array( 
  7. 'jumpstart_activated',  
  8. 'jetpack_action_taken',  
  9. 'jumpstart_dismissed' 
  10. ); 
  11.  
  12. if ( ! $jumpstart_option || in_array( $jumpstart_option, $hide_options ) ) { 
  13. return false; 
  14.  
  15. return true;