ninja_forms_register_field_textarea

The Ninja Forms ninja forms register field textarea function.

Description

ninja_forms_register_field_textarea(); 

Usage

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

Defined (1)

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

/deprecated/includes/fields/textarea.php  
  1. function ninja_forms_register_field_textarea() { 
  2. $args = array( 
  3. 'name' => __( 'Textarea', 'ninja-forms' ),  
  4. 'sidebar' => 'template_fields',  
  5. 'edit_function' => '',  
  6. 'edit_options' => array( 
  7. array( 
  8. 'type' => 'textarea',  
  9. 'name' => 'default_value',  
  10. 'label' => __( 'Default Value', 'ninja-forms' ),  
  11. 'width' => 'wide',  
  12. 'class' => 'widefat',  
  13. ),  
  14. array( 
  15. 'type' => 'checkbox',  
  16. 'name' => 'textarea_rte',  
  17. 'label' => __( 'Show Rich Text Editor', 'ninja-forms' ),  
  18. ),  
  19. array( 
  20. 'type' => 'checkbox',  
  21. 'name' => 'textarea_media',  
  22. 'label' => __( 'Show Media Upload Button', 'ninja-forms' ),  
  23. ),  
  24. array( 
  25. 'type' => 'checkbox',  
  26. 'name' => 'disable_rte_mobile',  
  27. 'label' => __( 'Disable Rich Text Editor on Mobile', 'ninja-forms' ),  
  28. ),  
  29. ),  
  30. 'display_function' => 'ninja_forms_field_textarea_display',  
  31. 'save_function' => '',  
  32. 'group' => 'standard_fields',  
  33. 'edit_label' => true,  
  34. 'edit_label_pos' => true,  
  35. 'edit_req' => true,  
  36. 'edit_custom_class' => true,  
  37. 'edit_help' => true,  
  38. 'edit_desc' => true,  
  39. 'edit_meta' => false,  
  40. 'edit_conditional' => true,  
  41. 'conditional' => array( 
  42. 'value' => array( 
  43. 'type' => 'textarea',  
  44. ),  
  45. ),  
  46. 'edit_sub_value' => 'nf_field_textarea_edit_sub_value',  
  47. 'pre_process' => 'nf_field_textarea_pre_process',  
  48. ); 
  49.  
  50. ninja_forms_register_field('_textarea', $args);