Lock post editing to one user at a time – wp_check_post_lock

Imagine the following situation: One user leaves the browser window.

What happens? No other user can place a bid.

If you’re using to fire up the bid, then you can add the wp_check_post_lock() function in there. And also remove the lock. So the post is only locked as long as someone is actually placing/sending the bid. As this will only last for some ms, you have successfully worked around the post lock problem.

Edit

There’s a new “post lock” feature for post types coming. This will be in 3.6 or 3.7. So far, no further details are known.