Home › Forums › ACF PRO › Checking if Custom Post Type already Exists › Reply To: Checking if Custom Post Type already Exists
If you don’t want to use my plugin, just hook your logic into one of the following validate filters – acf/validate_value
, acf/validate_value/type={$field['type']}
, acf/validate_value/name={$field['name']}
, or acf/validate_value/key={$field['key']}
. These filters take the arguments $valid, $value, $field, $input
and return true
for success or a string
if there was an error.
Also let me know if you would like to try out the new version of my validation plugin – it might contain a few bugs still but has a lot of new features.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.