ninja_forms_register_tab_metabox

The Ninja Forms ninja forms register tab metabox function.

Description

ninja_forms_register_tab_metabox( (array) $args = array() ); 

Parameters (1)

0. $args — Optional. (array) => array()
The args.

Usage

  1. if ( !function_exists( 'ninja_forms_register_tab_metabox' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/register.php'; 
  3.  
  4. // The args. 
  5. $args = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = ninja_forms_register_tab_metabox($args); 
  9.  

Defined (1)

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

/deprecated/includes/register.php  
  1. function ninja_forms_register_tab_metabox($args = array()) { 
  2. global $ninja_forms_tabs_metaboxes; 
  3.  
  4. $defaults = array( 
  5. 'display_container' => true,  
  6. 'save_function' => '',  
  7. 'state' => '' 
  8. ); 
  9.  
  10. // Parse incomming $args into an array and merge it with $defaults 
  11. $args = wp_parse_args( $args, $defaults ); 
  12.  
  13. extract( $args ); 
  14.  
  15. foreach($args as $key => $val) { 
  16. $ninja_forms_tabs_metaboxes[$page][$tab][$slug][$key] = $val;