Support » Plugins and Hacks » User Locker » Function to test current user state?

Function to test current user state?

  • 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 )


    is_user_locked( $uid )

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



Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘Function to test current user state?’ is closed to new replies.
Skip to toolbar