From: Chuck Scott Date: Tue, 27 Nov 2018 20:45:34 +0000 (-0500) Subject: Added filter to do quick check if this add-on is active. X-Git-Tag: v1.7.14^2~18 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=78f2d694eaababde8f1b35311c3b29338cbea7a0;p=WP-Plugins%2Fglm-member-db-events.git Added filter to do quick check if this add-on is active. --- 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 ){