mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-18 14:13:46 +09:00
Fix user meta key for registration progress handling
Updated the user meta key from `um_registration_in_progress` to `_um_registration_in_progress` across multiple files for consistency and proper functionality. This change ensures accurate checking and handling of users in the registration process.
This commit is contained in:
@@ -169,7 +169,7 @@ function um_check_user_status( $user_id, $args, $form_data = null ) {
|
||||
*/
|
||||
do_action( "um_post_registration_{$registration_status}_hook", $user_id, $args, $form_data );
|
||||
|
||||
delete_user_meta( $user_id, 'um_registration_in_progress' ); // Status is set. We can delete this marker.
|
||||
delete_user_meta( $user_id, '_um_registration_in_progress' ); // Status is set. We can delete this marker.
|
||||
|
||||
if ( is_null( $form_data ) || is_admin() ) {
|
||||
return;
|
||||
@@ -507,7 +507,7 @@ function um_submit_form_register( $args, $form_data ) {
|
||||
'meta_input' => array(
|
||||
// It's used to ignore users who cannot finish the registration process in the scheduled tasks
|
||||
// to set 'approved' status to the users without `account_status` meta.
|
||||
'um_registration_in_progress' => true,
|
||||
'_um_registration_in_progress' => true,
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user