I am creating a website where user have to be logged in to give a price bid on a product. Only one bid can be given on the product. Therefore, I only want one user at a time to be able to give a bid. Is it possible to lock post editing to one user from the frontend? So if 2 or more user enters a post simultaneously, could a message tell the other user that someone else is giving a bid?
I had a quick look at this function from post.php wp_check_post_lock, but if I call it from my theme, it is unrecognized.