WordPress.org

Ready to get started?Download WordPress

Forums

User Locker
Function to test current user state? (2 posts)

  1. KoZm0kNoT
    Member
    Posted 1 year ago #

    Hi!

    REALLY like your plugin (and I try to avoid them whenever I can.)

    I'm adding a custom user row action in my All User section of the admin panel...do you have a public-facing function like the ones you mentioned int he FAQ that will return a boolean to test for the current state of the user, something like:

    is_user_disabled( $uid )

    or

    is_user_locked( $uid )

    If not, can you recommend the best way to test for these conditions?

    THANKS!!

    http://wordpress.org/extend/plugins/user-locker/

  2. mandalatv
    Member
    Posted 8 months ago #

    Check the public functions provided in the plugin (user-locker.php). Around L604-L633 you'll find functions like:

    user_locker_is_user_locked( $user_id );
    user_locker_is_user_disabled( $user_id );

    Both of these provide boolean responses.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.