mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Clear cache to reflect blocked status for profile form
This commit is contained in:
@@ -236,6 +236,7 @@ if ( ! class_exists( 'um\common\Secure' ) ) {
|
||||
um_reset_user();
|
||||
update_user_meta( $user->ID, 'um_user_blocked', 'suspicious_activity' );
|
||||
update_user_meta( $user->ID, 'um_user_blocked__timestamp', current_time( 'mysql' ) );
|
||||
UM()->user()->remove_cache( $user->ID );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user