ninja_forms_register_tab_metabox_options

The Ninja Forms ninja forms register tab metabox options function.

Description

ninja_forms_register_tab_metabox_options( (array) $args = array() ); 

Parameters (1)

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

Usage

  1. if ( !function_exists( 'ninja_forms_register_tab_metabox_options' ) ) { 
  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_options($args); 
  9.  

Defined (1)

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

/deprecated/includes/register.php  
  1. function ninja_forms_register_tab_metabox_options( $args = array() ) { 
  2. global $ninja_forms_tabs_metaboxes; 
  3.  
  4. extract( $args ); 
  5.  
  6. $new_settings = $args['settings']; 
  7.  
  8. if( isset( $ninja_forms_tabs_metaboxes[$page][$tab][$slug]['settings'] ) ) { 
  9. $settings = $ninja_forms_tabs_metaboxes[$page][$tab][$slug]['settings']; 
  10. }else{ 
  11. $settings = array(); 
  12.  
  13. if( is_array( $new_settings ) AND !empty( $new_settings ) ) { 
  14. foreach( $new_settings as $s ) { 
  15. if( is_array( $settings ) ) { 
  16. array_push( $settings, $s ); 
  17.  
  18. $ninja_forms_tabs_metaboxes[$page][$tab][$slug]['settings'] = $settings;