ninja_forms_register_help_screen_tab
The Ninja Forms ninja forms register help screen tab function.
Description
Parameters (2)
- 0. $id
- The id.
- 1. $args
- The args.
Usage
if ( !function_exists( 'ninja_forms_register_help_screen_tab' ) ) { require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/register.php'; } // The id. $id = null; // The args. $args = null; // NOTICE! Understand what this does before running. $result = ninja_forms_register_help_screen_tab($id, $args);
Defined (1)
The function is defined in the following location(s).
- /deprecated/includes/register.php
- function ninja_forms_register_help_screen_tab( $id, $args ) {
- global $ninja_forms_help_screen_tabs;
- $defaults = array(
- 'display_function' => '',
- 'order' => '',
- 'page' => '',
- 'tab' => '',
- 'title' => '',
- );
- // Parse incomming $args into an array and merge it with $defaults
- $args = wp_parse_args( $args, $defaults );
- extract( $args );
- if($page == '' AND $tab == '') {
- $ninja_forms_help_screen_tabs['_universal_'][$id]['title'] = $title;
- $ninja_forms_help_screen_tabs['_universal_'][$id]['content'] = $display_function;
- }elseif($page != '' AND $tab == '') {
- $ninja_forms_help_screen_tabs[$page]['_universal_'][$id]['title'] = $title;
- $ninja_forms_help_screen_tabs[$page]['_universal_'][$id]['content'] = $display_function;
- }elseif($page != '' AND $tab != '') {
- $ninja_forms_help_screen_tabs[$page][$tab][$id]['title'] = $title;
- $ninja_forms_help_screen_tabs[$page][$tab][$id]['content'] = $display_function;
- }
- }