mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
fix function um_after_insert_user
This commit is contained in:
@@ -51,6 +51,11 @@ add_action('um_post_registration_pending_hook', 'um_post_registration_pending_ho
|
||||
* @param $args
|
||||
*/
|
||||
function um_after_insert_user( $user_id, $args ) {
|
||||
|
||||
if ( empty( $user_id ) || ( is_object( $user_id ) && is_a( $user_id, 'WP_Error' ) ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
//clear Users cached queue
|
||||
UM()->user()->remove_cached_queue();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user