add filter for replace placeholders in reset password emails

This commit is contained in:
andrewshuba
2019-05-03 16:59:13 +03:00
parent 887d4b5293
commit 002979fadb
3 changed files with 18 additions and 5 deletions
+3
View File
@@ -100,6 +100,9 @@ function um_action_request_process() {
wp_die( __( 'You do not have permission to make this action.', 'ultimate-member' ) );
}
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_fetch_user( $uid );
UM()->user()->approve();
exit( wp_redirect( UM()->permalinks()->get_current_url( true ) ) );