WordPress.org

Ready to get started?Download WordPress

Forums

WP-Members
[resolved] Select Activated Users (3 posts)

  1. greenday
    Member
    Posted 1 year ago #

    Hi

    I am trying to get a list of all users that are activated using this code:

    <?php
    $blogusers = get_users(array('meta_key' => 'activate_user', 'meta_value' => '1'));
        foreach ($blogusers as $user) {
            echo '<li>' . $user->user_email . '</li>';
        }
    ?>

    But it doesnt work - any ideas?

    http://wordpress.org/extend/plugins/wp-members/

  2. Chad Butler
    Member
    Plugin Author

    Posted 1 year ago #

    The meta_value is ok, but the meta_key is 'active'.

  3. greenday
    Member
    Posted 1 year ago #

    Great, thanks for your quick reply - that works good for me :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic