Skip to content

Commit

Permalink
* fixed using um_user( 'account_status' ) functions;
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitasinelnikov committed Oct 10, 2024
1 parent 55f176a commit 65dcf18
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/um-cronjob-activation-email/src/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,9 @@ public function resend_activation_notify() {
$users = get_users( $args );

foreach ( $users as $user_id ) {

um_fetch_user( $user_id );

$status = um_user( 'account_status' );
$status = UM()->common()->users()->get_status( $user_id );
if ( 'awaiting_email_confirmation' === $status ) {
UM()->common()->users()->send_activation( $user_id, true );
um_reset_user();
}
}
}
Expand Down

0 comments on commit 65dcf18

Please sign in to comment.