ninja_forms_register_field_number

The Ninja Forms ninja forms register field number function.

Description

ninja_forms_register_field_number(); 

Usage

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

Defined (1)

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

/deprecated/includes/fields/number.php  
  1. function ninja_forms_register_field_number() { 
  2. $args = array( 
  3. 'name' => __( 'Number', 'ninja-forms' ),  
  4. 'sidebar' => 'template_fields',  
  5. 'edit_function' => 'ninja_forms_field_number_edit',  
  6. 'edit_options' => array( 
  7. array( 
  8. 'type' => 'text',  
  9. 'class' => 'medium-text',  
  10. 'name' => 'number_min',  
  11. 'label' => __( 'Minimum Value', 'ninja-forms' ),  
  12. ),  
  13. array( 
  14. 'type' => 'text',  
  15. 'class' => 'medium-text',  
  16. 'name' => 'number_max',  
  17. 'label' => __( 'Maximum Value', 'ninja-forms' ),  
  18. ),  
  19. array( 
  20. 'type' => 'text',  
  21. 'class' => 'medium-text',  
  22. 'name' => 'number_step',  
  23. 'label' => __( 'Step (amount to increment by)', 'ninja-forms' ),  
  24. ),  
  25. ),  
  26. 'display_function' => 'ninja_forms_field_number_display',  
  27. 'save_function' => '',  
  28. 'group' => 'standard_fields',  
  29. 'edit_label' => true,  
  30. 'edit_label_pos' => true,  
  31. 'edit_req' => true,  
  32. 'edit_custom_class' => true,  
  33. 'edit_help' => true,  
  34. 'edit_desc' => true,  
  35. 'edit_meta' => false,  
  36. 'edit_conditional' => true,  
  37. 'conditional' => array( 
  38. 'value' => array( 
  39. 'type' => 'textarea',  
  40. ),  
  41. ),  
  42. ); 
  43.  
  44. ninja_forms_register_field( '_number', $args );