I have a custom filed called `xxxx_url`. `xxxx_url` should be unique.

So, before publishing the post, I want to make sure that `xxxx_url` is unique or not? If it isn't unique, publishing the post should be reject.

I tried `publish_post`. But that isn't the correct one, since it triggers when we publish the post. I want to run my code just before the publish.