#StackBounty: #custom-field #actions Is any action filter/hook for validate custom filed before publish the post?

Bounty: 50

I have a custom filed called xxxx_url. 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.

I tried 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….

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.