Showing posts with label Condition tags. Show all posts
Showing posts with label Condition tags. Show all posts

Tuesday, 11 February 2014

Condition for plugin active - is_plugin_active

condition check for plugin if is active plugin wordpress
Condition check for plugin - is_plugin_active

Recently When I was creating a theme for wordpress using Bootstrap 3. I decided to add bootstrap CPT Carousel plugin.

When I added the shortcode in the homepage it worked properly but when plugin is not active it prints the short code [image-carousel"] on the homepage.

The solution I found was checking if the plugin is active or not.