ddw_gftb_gravityforms_help_tab

Create and display plugin help tab.

Description

ddw_gftb_gravityforms_help_tab(); 

Usage

  1. if ( !function_exists( 'ddw_gftb_gravityforms_help_tab' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'gravity-forms-toolbar/lib/gftb-admin-extras.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = ddw_gftb_gravityforms_help_tab(); 
  7.  

Defined (1)

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

/lib/gftb-admin-extras.php  
  1. function ddw_gftb_gravityforms_help_tab() { 
  2.  
  3. global $gftb_gravityforms_screen; 
  4.  
  5. $gftb_gravityforms_screen = get_current_screen(); 
  6.  
  7. /** Display help tabs only for WordPress 3.3 or higher */ 
  8. if ( ! class_exists( 'WP_Screen' ) 
  9. || ! $gftb_gravityforms_screen 
  10. || ( defined( 'GFTB_DISPLAY' ) && ! GFTB_DISPLAY
  11. ) { 
  12.  
  13. return; 
  14.  
  15. } // end if 
  16.  
  17. /** Add the help tab */ 
  18. $gftb_gravityforms_screen->add_help_tab( array( 
  19. 'id' => 'gftb-gravityforms-help',  
  20. 'title' => __( 'Gravity Forms Toolbar', 'gravity-forms-toolbar' ),  
  21. ) ); 
  22.  
  23. /** Add help sidebar */ 
  24. $gftb_gravityforms_screen->set_help_sidebar( ddw_gftb_help_sidebar_content_extra() . ddw_gftb_help_sidebar_content() ); 
  25.  
  26. } // end of function ddw_gftb_gravityforms_help_tab