Home › Forums › General Issues › check acf exists or not › Reply To: check acf exists or not
ACF should not be able to be loaded twice. It already checks itself.
if( ! class_exists('ACF') ) :
This is done for everything in ACF and is the reason that ACF can be added to themes and plugins. Only the first instance encountered will be active.
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.