ninja_forms_register_field_profile_pass

The Ninja Forms ninja forms register field profile pass function.

Description

ninja_forms_register_field_profile_pass(); 

Usage

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

Defined (1)

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

/deprecated/includes/fields/password.php  
  1. function ninja_forms_register_field_profile_pass() { 
  2. $args = array( 
  3. 'name' => __( 'Password', 'ninja-forms' ),  
  4. 'display_function' => 'ninja_forms_field_profile_pass_display',  
  5. 'group' => 'standard_fields',  
  6. 'edit_label' => true,  
  7. 'edit_label_pos' => false,  
  8. 'default_label_pos' => 'left',  
  9. 'edit_req' => true,  
  10. 'edit_custom_class' => true,  
  11. 'edit_help' => true,  
  12. 'edit_meta' => false,  
  13. 'sidebar' => 'template_fields',  
  14. 'edit_conditional' => true,  
  15. 'conditional' => array( 
  16. 'value' => array( 
  17. 'type' => 'text',  
  18. ),  
  19. ),  
  20. //'limit' => 1,  
  21. 'save_sub' => false,  
  22. 'edit_options' => array( 
  23. array( 
  24. 'name' => 'reg_password',  
  25. 'type' => 'checkbox',  
  26. 'label' => __( 'Use this as a registration password field', 'ninja-forms' ),  
  27. 'default' => 1,  
  28. 'desc' => '<br>'.__( 'If this box is checked, both password and re-password textboxes will be output.', 'ninja-forms' ),  
  29. 'width' => 'wide',  
  30. ),  
  31. array( 
  32. 'name' => 're_pass',  
  33. 'type' => 'text',  
  34. 'label' => __( 'Re-enter Password Label', 'ninja-forms' ),  
  35. 'class' => 'widefat reg-password',  
  36. 'default' => __( 'Re-enter Password', 'ninja-forms' ),  
  37. 'width' => 'wide',  
  38. ),  
  39. array( 
  40. 'name' => 'adv_pass',  
  41. 'type' => 'checkbox',  
  42. 'label' => __( 'Show Password Strength Indicator', 'ninja-forms' ),  
  43. 'default' => 1,  
  44. 'class' => 'reg-password',  
  45. ),  
  46. ),  
  47. ); 
  48.  
  49. if( function_exists( 'ninja_forms_register_field' ) ) { 
  50. ninja_forms_register_field('_profile_pass', $args);