• Resolved Guido

    (@guido07111975)


    Hi,

    I want to execute code but only if Profile Builder is active.

    For example, WooCommerce has it’s own class:

    
    if ( class_exists( 'woocommerce' ) )  {
    // do stuff
    }
    

    Does Profile Builder has it’s own class too?

    Guido

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Guido

    (@guido07111975)

    Hi again,

    I have found out that I can use this native WP function as well:

    
    if ( is_plugin_active( 'profile-builder/index.php' ) ) {
    // do stuff
    }
    

    Guido

    Plugin Author Georgian Cocora

    (@raster02)

    Hello Guido,

    The method that you found above should help you out.

    Don’t hesitate to open a new topic if you have other questions !

    Best Regards,

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

The topic ‘Does Profile Builder has it’s own class?’ is closed to new replies.