Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WordPress: when a post is being edited, give a warning but allow others to view edit screen. Useful for remote training situations.
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
You can’t perform that action at this time.