• Resolved HB

    (@hbazan85)


    Hello

    Just as WooCommerce allows his detection to check if woocommerce is activated in theme with the function

    ” if ( class_exists( ‘WooCommerce’ ) ) “

    Is there a similar function for the Ajax Search plugin?

    i mean to avoid using the “if( is_plugin_active )”

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Ernest Marcinko

    (@ernestmarcinko)

    Hi,

    Sure!

    I recommend using a define check, like so:

    if ( defined('ASL_PATH') ) {
    // Ajax Search Lite is enabled
    }

    if ( defined('ASP_PATH') ) {
    // Ajax Search Pro is enabled
    }

    All the best,
    Ernest

    Thread Starter HB

    (@hbazan85)

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.