Title: Plugin doesn&#039;t work
Last modified: August 21, 2016

---

# Plugin doesn't work

 *  Resolved [Eric Andrew Lewis](https://wordpress.org/support/users/ericlewis/)
 * (@ericlewis)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-30/)
 * Hey Bryan,
 * great idea here. However, the plugin doesn’t exactly do what it should.
 * On activation of the plugin _edit_lock post meta is cleared, which clears any
   current locks for posts.
 * I believe the best approach here would be to just filter ‘wp_check_post_lock_window’,
   and set it to a negative value. Cheers.
 *     ```
       <?php
   
       add_filter( 'wp_check_post_lock_window', 'set_post_lock_window_to_a_negative_number' );
   
       function set_post_lock_window_to_a_negative_number( $lock_window ) {
       	$lock_window = -1;
       	return $lock_window;
       ```
   
 * [http://wordpress.org/plugins/disable-post-locking/](http://wordpress.org/plugins/disable-post-locking/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Bryan Petty](https://wordpress.org/support/users/bpetty/)
 * (@bpetty)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-30/#post-4145606)
 * I did have a problem initially with version 1.0 that used the wrong method name
   in the metadata update filter. That was fixed in 1.1 though. I’d give that another
   shot.
 *  Plugin Author [Bryan Petty](https://wordpress.org/support/users/bpetty/)
 * (@bpetty)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-30/#post-4145607)
 * Basically, my approach stops WordPress from ever marking a post as locked in 
   the first place, so that also prevents issues like additional lists of posts 
   outside of the editor showing posts as locked as well.
 *  Thread Starter [Eric Andrew Lewis](https://wordpress.org/support/users/ericlewis/)
 * (@ericlewis)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-30/#post-4145644)
 * Ah works now, and a more to-the-point approach 😉

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Plugin doesn't work’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/disable-post-locking.svg)
 * [Disable Post Locking](https://wordpress.org/plugins/disable-post-locking/)
 * [Support Threads](https://wordpress.org/support/plugin/disable-post-locking/)
 * [Active Topics](https://wordpress.org/support/plugin/disable-post-locking/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/disable-post-locking/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/disable-post-locking/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Eric Andrew Lewis](https://wordpress.org/support/users/ericlewis/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-30/#post-4145644)
 * Status: resolved