How to tell if custom field is from CFS or ACF
-
Hey Matt,
I’m developing a plugin that allows admins to set content requirements before content can be published. And, I’m working on integrating custom fields to work with this plugin. But, I’m running into a problem… it seems there’s no way to easily determine whether or not a custom field has been created with CFS or ACF. I’ve been able to get it to work using lots of javascript that targets the parent element of an input field, but its ugly and relies heavily on javascript. Is there any way to make this distinction with just PHP? I’ve looked into how CFS fields are stored in the database, but it seems similar to how AFC does it. Am I missing something?
I realize this isn’t your standard support request. But, I’ve exhausted all my resources and figured I’d just go straight to the source. Hope you can help!
-D
- The topic ‘How to tell if custom field is from CFS or ACF’ is closed to new replies.