Skip to content

Instantly share code, notes, and snippets.

@kohnmd
Created March 5, 2014 03:51
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kohnmd/9360851 to your computer and use it in GitHub Desktop.
Save kohnmd/9360851 to your computer and use it in GitHub Desktop.
Remove Post Locked Dialog in WP Admin
<?php
add_filter('show_post_locked_dialog', '__return_false');
@donnamcmaster
Copy link

I've been using this for a few years and sometimes it doesn't work. According to https://wordpress.stackexchange.com/questions/120179/how-to-disable-the-post-lock-edit-lock, this filter takes care of post.php and the "User has taken over" message but you also need to add:

add_filter( 'wp_check_post_lock_window', '__return_false' );

to take care of the message "Someone else is editing this."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment