- disabled email notification about delete to user, which wasn't approved;

This commit is contained in:
nikitozzzzzzz
2018-05-30 18:47:08 +03:00
parent d4188290d3
commit 4d8bf91175
+4
View File
@@ -1360,6 +1360,10 @@ if ( ! class_exists( 'um\core\User' ) ) {
function delete( $send_mail = true ) {
$this->send_mail_on_delete = $send_mail;
//don't send email notification to not approved user
if ( 'approved' != um_user( 'account_status' ) ) {
$this->send_mail_on_delete = false;
}
$this->delete_user_handler( um_user( 'ID' ) );