Restrict access to post if it is currently being edited

In this post, you will learn how to restrict access to post if it is currently being edited in your WordPress site. 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.

Restrict access to post if it is currently being edited

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.