Last active
April 22, 2018 19:10
-
-
Save donnamcmaster/19fd89959c30e22e55d4f617b29f6ea5 to your computer and use it in GitHub Desktop.
WordPress: when a post is being edited, give a warning but allow others to view edit screen. Useful for remote training situations.
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
if ( is_admin() ) { | |
// soften post lock to post warning | |
add_filter( 'show_post_locked_dialog', '__return_false' ); | |
add_filter( 'wp_check_post_lock_window', '__return_false' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment