2019-07-17 16:55:09 +03:00
|
|
|
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
|
|
|
|
|
2019-07-16 18:40:07 +03:00
|
|
|
<div class="um <?php echo esc_attr( $this->get_class( $mode ) ); ?> um-<?php echo esc_attr( $form_id ); ?>">
|
2014-12-22 01:45:24 +02:00
|
|
|
|
|
|
|
|
<div class="um-form">
|
2020-07-09 15:00:01 +03:00
|
|
|
|
2014-12-22 01:45:24 +02:00
|
|
|
<form method="post" action="">
|
2018-09-16 00:26:32 +03:00
|
|
|
<input type="hidden" name="_um_password_change" id="_um_password_change" value="1" />
|
2022-08-11 21:49:19 +03:00
|
|
|
<input type="hidden" name="login" value="<?php echo esc_attr( $args['login'] ); ?>" />
|
2020-07-09 15:00:01 +03:00
|
|
|
<input type="hidden" name="rp_key" value="<?php echo esc_attr( $rp_key ); ?>" />
|
2018-03-05 16:35:51 +02:00
|
|
|
|
2018-09-16 00:26:32 +03:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* UM hook
|
|
|
|
|
*
|
|
|
|
|
* @type action
|
|
|
|
|
* @title um_change_password_page_hidden_fields
|
|
|
|
|
* @description Password change hidden fields
|
|
|
|
|
* @input_vars
|
|
|
|
|
* [{"var":"$args","type":"array","desc":"Password change shortcode arguments"}]
|
|
|
|
|
* @change_log
|
|
|
|
|
* ["Since: 2.0"]
|
|
|
|
|
* @usage add_action( 'um_change_password_page_hidden_fields', 'function_name', 10, 1 );
|
|
|
|
|
* @example
|
|
|
|
|
* <?php
|
|
|
|
|
* add_action( 'um_change_password_page_hidden_fields', 'my_change_password_page_hidden_fields', 10, 1 );
|
|
|
|
|
* function my_change_password_page_hidden_fields( $args ) {
|
|
|
|
|
* // your code here
|
|
|
|
|
* }
|
|
|
|
|
* ?>
|
|
|
|
|
*/
|
|
|
|
|
do_action( 'um_change_password_page_hidden_fields', $args );
|
2018-03-05 16:35:51 +02:00
|
|
|
|
2018-09-16 00:26:32 +03:00
|
|
|
$fields = UM()->builtin()->get_specific_fields( 'user_password' );
|
2018-03-05 16:35:51 +02:00
|
|
|
|
2020-07-06 14:20:29 +03:00
|
|
|
UM()->fields()->set_mode = 'password';
|
|
|
|
|
|
2018-09-16 00:26:32 +03:00
|
|
|
$output = null;
|
|
|
|
|
foreach ( $fields as $key => $data ) {
|
|
|
|
|
$output .= UM()->fields()->edit_field( $key, $data );
|
|
|
|
|
}
|
|
|
|
|
echo $output; ?>
|
2014-12-22 01:45:24 +02:00
|
|
|
|
2018-09-16 00:26:32 +03:00
|
|
|
<div class="um-col-alt um-col-alt-b">
|
|
|
|
|
|
|
|
|
|
<div class="um-center">
|
2022-08-11 21:49:19 +03:00
|
|
|
<input type="submit" value="<?php esc_attr_e( 'Change password', 'ultimate-member' ); ?>" class="um-button" id="um-submit-btn" />
|
2018-09-16 00:26:32 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="um-clear"></div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* UM hook
|
|
|
|
|
*
|
|
|
|
|
* @type action
|
|
|
|
|
* @title um_change_password_form
|
|
|
|
|
* @description Password change form content
|
|
|
|
|
* @input_vars
|
|
|
|
|
* [{"var":"$args","type":"array","desc":"Password change shortcode arguments"}]
|
|
|
|
|
* @change_log
|
|
|
|
|
* ["Since: 2.0"]
|
|
|
|
|
* @usage add_action( 'um_change_password_form', 'function_name', 10, 1 );
|
|
|
|
|
* @example
|
|
|
|
|
* <?php
|
|
|
|
|
* add_action( 'um_change_password_form', 'my_change_password_form', 10, 1 );
|
|
|
|
|
* function my_change_password_form( $args ) {
|
|
|
|
|
* // your code here
|
|
|
|
|
* }
|
|
|
|
|
* ?>
|
|
|
|
|
*/
|
|
|
|
|
do_action( 'um_change_password_form', $args );
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* UM hook
|
|
|
|
|
*
|
|
|
|
|
* @type action
|
|
|
|
|
* @title um_after_form_fields
|
|
|
|
|
* @description Password change after form content
|
|
|
|
|
* @input_vars
|
|
|
|
|
* [{"var":"$args","type":"array","desc":"Password change shortcode arguments"}]
|
|
|
|
|
* @change_log
|
|
|
|
|
* ["Since: 2.0"]
|
|
|
|
|
* @usage add_action( 'um_after_form_fields', 'function_name', 10, 1 );
|
|
|
|
|
* @example
|
|
|
|
|
* <?php
|
|
|
|
|
* add_action( 'um_after_form_fields', 'my_after_form_fields', 10, 1 );
|
|
|
|
|
* function my_after_form_fields( $args ) {
|
|
|
|
|
* // your code here
|
|
|
|
|
* }
|
|
|
|
|
* ?>
|
|
|
|
|
*/
|
2019-05-29 18:51:22 +03:00
|
|
|
do_action( 'um_after_form_fields', $args ); ?>
|
2014-12-22 01:45:24 +02:00
|
|
|
</form>
|
|
|
|
|
</div>
|
2022-08-11 21:49:19 +03:00
|
|
|
</div>
|