mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
add filter for replace placeholders in reset password emails
This commit is contained in:
@@ -1192,6 +1192,8 @@ if ( ! class_exists( 'um\core\User' ) ) {
|
||||
function password_reset() {
|
||||
$userdata = get_userdata( um_user('ID') );
|
||||
get_password_reset_key( $userdata );
|
||||
add_filter( 'um_template_tags_patterns_hook', 'password_reset_link_tags_patterns', 10, 1 );
|
||||
add_filter( 'um_template_tags_replaces_hook', 'password_reset_link_tags_replaces', 10, 1 );
|
||||
UM()->mail()->send( um_user('user_email'), 'resetpw_email' );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user