Loading plugin.php on front end for is_plugin_active() function
authorChuck Scott <cscott@gaslightmedia.com>
Tue, 26 Jan 2016 17:35:02 +0000 (12:35 -0500)
committerChuck Scott <cscott@gaslightmedia.com>
Tue, 26 Jan 2016 17:35:02 +0000 (12:35 -0500)
setup/frontHooks.php

index 10b3268..3007576 100644 (file)
@@ -50,6 +50,7 @@ add_filter('init', function() {
 
 // Squash Bread Crumbs if using Breadcrumb NavXT plugin -- NEED TO CREATE A MANAGEMENT OPTION FOR THIS TO TURN IT ON/OFF
 $plugin_name = 'glm-member-db/glm-member-db.php';
+include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
 if (is_plugin_active($plugin_name)) {
     add_action('bcn_after_fill', function($trail) {
         global $post;