Support

Account

Home Forums General Issues check acf exists or not

Solved

check acf exists or not

  • hello
    how to check acf ( any version ) already exists in wordpress or not ?
    i means : check if any plugins or active theme using acf .
    i want this for preventing conflict two acf with together .
    do you have any suggestion ?
    thanks

  • 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.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.