ninja_forms_load_screen_options_tab

The Ninja Forms ninja forms load screen options tab function.

Description

ninja_forms_load_screen_options_tab(); 

Usage

  1. if ( !function_exists( 'ninja_forms_load_screen_options_tab' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/admin/display-screen-options.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = ninja_forms_load_screen_options_tab(); 
  7.  

Defined (1)

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

/deprecated/includes/admin/display-screen-options.php  
  1. function ninja_forms_load_screen_options_tab() { 
  2. global $ninja_forms_help_screen_tabs, $ninja_forms_screen_options; 
  3. $current_tab = ninja_forms_get_current_tab(); 
  4. $current_page = esc_html( $_REQUEST['page'] ); 
  5. $screen = get_current_screen(); 
  6.  
  7. if(isset($ninja_forms_help_screen_tabs['_universal_'])) { 
  8. foreach($ninja_forms_help_screen_tabs['_universal_'] as $key => $tab) { 
  9. $screen->add_help_tab( array( 
  10. 'id' => $key, // This should be unique for the screen. 
  11. 'title' => $tab['title'],  
  12. 'callback' => $tab['content'],  
  13. // Use 'callback' instead of 'content' for a function callback that renders the tab content. 
  14. ) ); 
  15.  
  16. if(isset($ninja_forms_help_screen_tabs[$current_page]['_universal_'])) { 
  17. foreach($ninja_forms_help_screen_tabs[$current_page]['_universal_'] as $key => $tab) { 
  18. $screen->add_help_tab( array( 
  19. 'id' => $key, // This should be unique for the screen. 
  20. 'title' => $tab['title'],  
  21. 'callback' => $tab['content'],  
  22. // Use 'callback' instead of 'content' for a function callback that renders the tab content. 
  23. ) ); 
  24.  
  25. if(isset($ninja_forms_help_screen_tabs[$current_page][$current_tab])) { 
  26. foreach($ninja_forms_help_screen_tabs[$current_page][$current_tab] as $key => $tab) { 
  27. $screen->add_help_tab( array( 
  28. 'id' => $key, // This should be unique for the screen. 
  29. 'title' => $tab['title'],  
  30. 'callback' => $tab['content'],  
  31. // Use 'callback' instead of 'content' for a function callback that renders the tab content. 
  32. ) ); 
  33.  
  34. if(isset($ninja_forms_screen_options['_universal_']) OR isset($ninja_forms_screen_options[$current_page]['_universal_']) OR isset($ninja_forms_screen_options[$current_page][$current_tab]) ) { 
  35. $screen->add_option(ninja_forms, '');