Title: Locking Stopped Working
Last modified: September 26, 2023

---

# Locking Stopped Working

 *  [epgb101](https://wordpress.org/support/users/epgb101/)
 * (@epgb101)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/locking-stopped-working/)
 * Hi there,
 * This plugin has worked great on my site for a long time.
 * However – today every time I lock a user’s account it remains ‘Not Locked’
 * Any ideas what’s up?
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flocking-stopped-working%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/locking-stopped-working/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/locking-stopped-working/page/2/?output_format=md)

 *  [lophas](https://wordpress.org/support/users/lophas/)
 * (@lophas)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/locking-stopped-working/#post-17087690)
 * Probably because you have filtered/ordered your list. Plugin works only with 
   strict /wp-admin/users.php url, without any url parameters.
   I have created a 
   code snippet to fix this minor issue and provide multisite and individual profile
   edit support as well. [https://github.com/lophas/lock_user_account/](https://github.com/lophas/lock_user_account/)
 *  Thread Starter [epgb101](https://wordpress.org/support/users/epgb101/)
 * (@epgb101)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/locking-stopped-working/#post-17088024)
 * Hey there…
 * I didn’t know that – that is extremely helpful of you to post. I want to say 
   this is a great plugin. I’ll get on to that straight away.
 * Ed.
 *  Thread Starter [epgb101](https://wordpress.org/support/users/epgb101/)
 * (@epgb101)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/locking-stopped-working/#post-17092948)
 * Hi there..
 * FYI I have not changed the way I have been locking accounts. I search for profile
   under [http://www.site.com/wp-admin/users.php](http://www.site.com/wp-admin/users.php)–
   then select checkbox to left of profile > bulk action > Lock > Apply and it’s
   always worked.
 * I removed filter parameters and refreshed page so I have [http://www.site.com/wp-admin/users.php?s=uername](http://www.site.com/wp-admin/users.php?s=uername)
   > then lock – but it does not work for me (I’m probably doing it wrong as you
   say).
 * So, may I ask – where do I place this file that you kindly updated [fix_Baba_User_Meta.php](https://github.com/lophas/lock_user_account/blob/main/fix_Baba_User_Meta.php)(
   or do I copy the code to an existing file?)
 * Github never explains what to do with the files programmers upload for people
   like me who are not experts.
 * Thank you.
    -  This reply was modified 2 years, 9 months ago by [epgb101](https://wordpress.org/support/users/epgb101/).
    -  This reply was modified 2 years, 9 months ago by [epgb101](https://wordpress.org/support/users/epgb101/).
    -  This reply was modified 2 years, 9 months ago by [epgb101](https://wordpress.org/support/users/epgb101/).
 *  [lophas](https://wordpress.org/support/users/lophas/)
 * (@lophas)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/locking-stopped-working/#post-17093531)
 * You may drop the [fix_Baba_User_Meta.php](https://github.com/lophas/lock_user_account/blob/main/fix_Baba_User_Meta.php)
   file into your /wp-content/mu-plugins/ folder
   OR copy the code content into your
   functions.php in your theme folder
 *  [rabbit424](https://wordpress.org/support/users/rabbit424/)
 * (@rabbit424)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/locking-stopped-working/#post-17133835)
 * I tried adding the file to my mu-plugins directory and it basically broke my 
   website. I had to remove it. I tried adding to the normal plugins directory and
   it did nothing… 
   Im looking at the code, and it doesnt look like code that would
   fit into the functions.php file. do you suggest literally copying and pasting
   all of the code from that php file into the bottom of functions.php?Any other
   update on fixing this for everyone by providing a plugin update?
 * thanks for the support!
 *  Plugin Author [teknigar](https://wordpress.org/support/users/babatechs/)
 * (@babatechs)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/locking-stopped-working/#post-17140466)
 * Hello,
 * The issue has been fixed in the latest update V 1.0.5. Apologies for the inconvenience.
    -  This reply was modified 2 years, 9 months ago by [teknigar](https://wordpress.org/support/users/babatechs/).
 *  Thread Starter [epgb101](https://wordpress.org/support/users/epgb101/)
 * (@epgb101)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/locking-stopped-working/#post-17146498)
 * Hi
 * I updated plugin then tried searching and selecting the username to lock in site.
   com/wp-admin/users.php?s=username&action=-1&new_role&paged=1&action2=-1&new_role2
   then Bulk Actions > Lock > Apply – but it remains unlocked. I think maybe it’s
   because I’m using BuddyPress and it is designed for WP.
 * Thanks.
 *  Plugin Author [teknigar](https://wordpress.org/support/users/babatechs/)
 * (@babatechs)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/locking-stopped-working/#post-17148420)
 * Hello,
 * can you please try with deactivating buddypress for a while?
 * Thanks
 *  Thread Starter [epgb101](https://wordpress.org/support/users/epgb101/)
 * (@epgb101)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/locking-stopped-working/#post-17148797)
 * yes I will and get back to you…. 🙂
 *  Thread Starter [epgb101](https://wordpress.org/support/users/epgb101/)
 * (@epgb101)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/locking-stopped-working/#post-17148814)
 * Hi.
 * I disabled BuddyPress – then tried the same action described above on same user
   and still did not lock. So I had to mark user as ‘spammer’ for now (this deletes
   their BP profile data – so if it turns out after investigation they are not spammer
   they have to start again which is why I like your plugin 🙂
 * Thanks
 *  [aledef](https://wordpress.org/support/users/aledef/)
 * (@aledef)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/locking-stopped-working/#post-17199913)
 * Hi,
   same issue here.User lock is not working any more.I tested on a fresh install
   with Twenty Twenty-Four theme and no other plugins active.Any help?Thanks
 *  Plugin Author [teknigar](https://wordpress.org/support/users/babatechs/)
 * (@babatechs)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/locking-stopped-working/#post-17212387)
 * Hello [@aledef](https://wordpress.org/support/users/aledef/),
 * Can you please contact me via my email address [mejidev@gmail.com](https://wordpress.org/support/topic/locking-stopped-working/mejidev@gmail.com?output_format=md)
   so I can help you efficiently.
 * Thanks.
 *  [aledef](https://wordpress.org/support/users/aledef/)
 * (@aledef)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/locking-stopped-working/#post-17212845)
 * Hi teknigar,
   I tested your plugin ( Version 1.0.5 ) on two different Wp fresh
   install ( WP 6.4.1, PHP 7.4.33 ) on two different domains, with Twenty Twenty-
   Four theme and no other plugins active.User lock is not working on both websites..
   Please note that version 1.0.3 works on both websites so I am pretty sure there
   must be some issues from version 1.0.4I wonder if you have also carried out tests
   of this type and found no issues.Anyway I wrote you a mail.Have a nice day
 *  Thread Starter [epgb101](https://wordpress.org/support/users/epgb101/)
 * (@epgb101)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/locking-stopped-working/#post-17316698)
 * Hi all..
 * I tested [@lophas](https://profiles.wordpress.org/lophas/) file on Github in 
   mu-plugins and it worked great – I can now Lock from Profile in wp-admin! Thank
   you my friend [@lophas](https://profiles.wordpress.org/lophas/). The one thing
   that I couldnt get working was Locking from the [x] > Bulk Actions > Lock. But
   I shall not complain! Very pleased I can now lock users again. (still not sure
   why it stopped working from Bulk Actions :))
 *  [aledef](https://wordpress.org/support/users/aledef/)
 * (@aledef)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/locking-stopped-working/#post-17317198)
 * Same issue here.
   Bulk actions not working from version 1.0.4 on, they work on
   version 1.0.3

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/locking-stopped-working/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/locking-stopped-working/page/2/?output_format=md)

The topic ‘Locking Stopped Working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/lock-user-account_f4f4f4.svg)
 * [Lock User Account](https://wordpress.org/plugins/lock-user-account/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lock-user-account/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lock-user-account/)
 * [Active Topics](https://wordpress.org/support/plugin/lock-user-account/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lock-user-account/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lock-user-account/reviews/)

 * 16 replies
 * 5 participants
 * Last reply from: [aledef](https://wordpress.org/support/users/aledef/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/locking-stopped-working/page/2/#post-17390199)
 * Status: not resolved