On a platform with many Editors, the problem that I am experiencing is that two editors proofread the same post simultaneously (and disregarding the warning notice about someone else currently editing the post).
Is there a solution where I can restrict access to a post if it is currently being edited by a different user? Maybe by disabling the post’s edit link on the post list? This should only take effect on editors if they are not the author of the post (we don’t want them to be locked out of their own post) and admins should be excluded from any restriction.
The warning notice gets dispatched by the function
wp_check_post_lock
. The following redirects the user back to the post listing screen if someone else is editing it.And to indicate that a post is locked, ie, being edited by other user, a small red sign can be added to the row actions.