I have a custom filed called
xxxx_url should be unique.
So, before publish the post, I want to make sure that
xxxx_url is unique or not? If it isn’t unique it should reject publishing post.
publish_post. But that isn’t the correct one since it triggers when we publish the post. I just want to run my code just before the publish….