zartgesotten
10/16/2017 - 12:16 PM

Find out if a plugin is active

/*ACF*/

<?php 
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
	if ( is_plugin_active( 'advanced-custom-fields/acf.php' ) )
 {
			//plugin is activated
}
?>


/*wpml*/
	<?php 
	include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
	if ( is_plugin_active( 'sitepress-multilingual-cms/sitepress.php' ) )
     {
  	//Do something
	}
?>
	
	<?php 
	include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
	if ( is_plugin_active( 'revslider/revslider.php' ) )
     {
  	//Do something

	}
?>