How do I unlock a post programmatically?

I can use wp_set_post_lock to temporarily lock a post so that only I can edit it.

I can use wp_refresh_post_lock to refresh that lock.

I can use wp_check_post_lock to check whether a post is locked.

…but how can I remove the post lock? My assumption would be there’s a function called wp_remove_post_lock or wp_release_post_lock, but neither of those seem to exist.

So how can I remove the post lock? Surely I don’t have to wait for it to time out, right?

Read more here:: How do I unlock a post programmatically?

Leave a Reply

Your email address will not be published. Required fields are marked *