Created
March 5, 2014 03:51
-
-
Save kohnmd/9360851 to your computer and use it in GitHub Desktop.
Remove Post Locked Dialog in WP Admin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('show_post_locked_dialog', '__return_false'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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."