ninja_forms_register_imp_forms_metabox

The Ninja Forms ninja forms register imp metabox function.

Description

ninja_forms_register_imp_forms_metabox(); 

Usage

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

Defined (1)

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

/deprecated/includes/admin/pages/ninja-forms-impexp/tabs/impexp-forms/impexp-forms.php  
  1. function ninja_forms_register_imp_forms_metabox() { 
  2. $args = array( 
  3. 'page' => 'ninja-forms-impexp',  
  4. 'tab' => 'impexp_forms',  
  5. 'slug' => 'imp_form',  
  6. 'title' => __( 'Import a form', 'ninja-forms' ),  
  7. 'settings' => array( 
  8. array( 
  9. 'name' => 'userfile',  
  10. 'type' => 'file',  
  11. 'label' => __( 'Select a file', 'ninja-forms' ),  
  12. 'desc' => '',  
  13. 'max_file_size' => 5000000,  
  14. 'help_text' => '',  
  15. ),  
  16. array( 
  17. 'name' => 'submit',  
  18. 'type' => 'submit',  
  19. 'label' => __( 'Import Form', 'ninja-forms' ),  
  20. 'class' => 'button-secondary',  
  21. ),  
  22. ),  
  23. );