• Hi
    I wanna check if elementor is installed and activated, run my theme function code:

    if (what should I put here?){
        class my_custom_elementor_widgets{...}
    }else{
        // define a notice for active elementor
    }

    Thanks.

Viewing 1 replies (of 1 total)
  • Thread Starter Shayan Farhang Pazhooh

    (@shayanfp)

    Hi
    I resolved my problem on my own.
    You can use this code:

    
    function shayan_test_function() {
    	if (is_plugin_active( 'elementor/elementor.php' )) {
    		//Do something...
    	}
    }
    add_action( 'init', 'shayan_test_function' );
    

    (:

Viewing 1 replies (of 1 total)

The topic ‘if elementor installed and actived is_plugin_active’ is closed to new replies.