[account_status] How to make an if?
-
Hi,
I cannot access “account_status”. How to check if the user has confirmed the email or not?My code:
$args = array( 'role' => 'subscriber', 'meta_key' => 'account_status', 'meta_value' => 'approved' ); $users = get_users($args); foreach ($users as $user) { echo '<pre>'; print_r( $user ); echo '</pre>'; }
I want to check if the user is “approved”. How is it displaying xxx, how is it not displaying yyy?
Can anyone help?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[account_status] How to make an if?’ is closed to new replies.