Sin descripción

password-change.php 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
  2. <div class="um <?php echo esc_attr( $this->get_class( $mode ) ); ?> um-<?php echo esc_attr( $form_id ); ?>">
  3. <div class="um-form">
  4. <form method="post" action="">
  5. <input type="hidden" name="_um_password_change" id="_um_password_change" value="1" />
  6. <input type="hidden" name="user_id" id="user_id" value="<?php echo esc_attr( $args['user_id'] ); ?>" />
  7. <input type="hidden" name="rp_key" value="<?php echo esc_attr( $rp_key ); ?>" />
  8. <?php
  9. /**
  10. * UM hook
  11. *
  12. * @type action
  13. * @title um_change_password_page_hidden_fields
  14. * @description Password change hidden fields
  15. * @input_vars
  16. * [{"var":"$args","type":"array","desc":"Password change shortcode arguments"}]
  17. * @change_log
  18. * ["Since: 2.0"]
  19. * @usage add_action( 'um_change_password_page_hidden_fields', 'function_name', 10, 1 );
  20. * @example
  21. * <?php
  22. * add_action( 'um_change_password_page_hidden_fields', 'my_change_password_page_hidden_fields', 10, 1 );
  23. * function my_change_password_page_hidden_fields( $args ) {
  24. * // your code here
  25. * }
  26. * ?>
  27. */
  28. do_action( 'um_change_password_page_hidden_fields', $args );
  29. $fields = UM()->builtin()->get_specific_fields( 'user_password' );
  30. UM()->fields()->set_mode = 'password';
  31. $output = null;
  32. foreach ( $fields as $key => $data ) {
  33. $output .= UM()->fields()->edit_field( $key, $data );
  34. }
  35. echo $output; ?>
  36. <div class="um-col-alt um-col-alt-b">
  37. <div class="um-center">
  38. <input type="submit" value="<?php esc_attr_e( 'Change my password', 'ultimate-member' ); ?>" class="um-button" id="um-submit-btn" />
  39. </div>
  40. <div class="um-clear"></div>
  41. </div>
  42. <?php
  43. /**
  44. * UM hook
  45. *
  46. * @type action
  47. * @title um_change_password_form
  48. * @description Password change form content
  49. * @input_vars
  50. * [{"var":"$args","type":"array","desc":"Password change shortcode arguments"}]
  51. * @change_log
  52. * ["Since: 2.0"]
  53. * @usage add_action( 'um_change_password_form', 'function_name', 10, 1 );
  54. * @example
  55. * <?php
  56. * add_action( 'um_change_password_form', 'my_change_password_form', 10, 1 );
  57. * function my_change_password_form( $args ) {
  58. * // your code here
  59. * }
  60. * ?>
  61. */
  62. do_action( 'um_change_password_form', $args );
  63. /**
  64. * UM hook
  65. *
  66. * @type action
  67. * @title um_after_form_fields
  68. * @description Password change after form content
  69. * @input_vars
  70. * [{"var":"$args","type":"array","desc":"Password change shortcode arguments"}]
  71. * @change_log
  72. * ["Since: 2.0"]
  73. * @usage add_action( 'um_after_form_fields', 'function_name', 10, 1 );
  74. * @example
  75. * <?php
  76. * add_action( 'um_after_form_fields', 'my_after_form_fields', 10, 1 );
  77. * function my_after_form_fields( $args ) {
  78. * // your code here
  79. * }
  80. * ?>
  81. */
  82. do_action( 'um_after_form_fields', $args ); ?>
  83. </form>
  84. </div>
  85. </div>