Display plugin on frontend side if is active

/* if booking plugin is active */
function legalattorneys_shortcode(){
include_once( ABSPATH . ‘wp-admin/includes/plugin.php’ );
if(is_plugin_active(‘fastbook-responsive-appointment-booking-and-scheduling-system/fastbook.php’)) {
echo do_shortcode(‘[fastbook]’);
}
}

/* Display any where */

<?php legalattorneys_shortcode(); ?>

Advertisements

Tagged:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: