Help, Support & Customization for
User Locker
Call now: 720-288-0398
Using WordPress HelpCenter for help with User Locker supports Daniel Frużyński (the plugin developer).
user-locker directory to the /wp-content/plugins/ directoryUser Locker provides special functions (placed in "Public functions" section in code). I recommend to use them instead of calling methods of UserLocker class directly - the latter ones may change without any notice. There are also few hooks which you can use too.
There are following functions and hooks available:
function user_locker_lock_user( $user_id, $reason = '' ) - Lock user account (user may unlock it by requesting new password). Parameters: User ID; New lock reason (may be empty string) or False to do not update lock reason. This function calls the user_locker_lock_user after locking user account with one parameter - User ID;function user_locker_unlock_user( $user_id, $reason = false ) - Unlock user account. Parameters: User ID; New lock reason (may be empty string) or False to do not update lock reason. This function calls the user_locker_unlock_user after unlocking user account with one parameter - User ID;function user_locker_disable_user( $user_id, $reason = '' ) - Disable user account (user cannot enable it, only admin can do this). Parameters: User ID; New disable reason (may be empty string) or False to do not update disable reason. This function calls the user_locker_disable_user after disabling user account with one parameter - User ID;function user_locker_enable_user( $user_id, $reason = false ) - Enable user account. Parameters: User ID; New disable reason (may be empty string) or False to do not update disable reason. This function calls the user_locker_enable_user after enabling user account with one parameter - User ID;Using WordPress HelpCenter for help with User Locker supports Daniel Frużyński (the plugin developer).