From 78f2d694eaababde8f1b35311c3b29338cbea7a0 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Tue, 27 Nov 2018 15:45:34 -0500 Subject: [PATCH] Added filter to do quick check if this add-on is active. --- setup/commonHooks.php | 7 +++++++ 1 file changed, 7 insertions(+) mode change 100644 => 100755 setup/commonHooks.php diff --git a/setup/commonHooks.php b/setup/commonHooks.php old mode 100644 new mode 100755 index ab7fbda..46c766a --- a/setup/commonHooks.php +++ b/setup/commonHooks.php @@ -2,6 +2,13 @@ // Place any filters that are being called from the data classes here. // This hooks files gets called in for both admin and front. +/** + * Filter will return true if the plugin is active. + */ +add_filter( 'glm-members-events-plugin-active', function( $active ){ + return true; +}, 10, 1 ); + // Add hook to return base event data for a specific event ID add_filter( 'glm-member-db-events-get-event', function( $eventID ){ -- 2.17.1