Added filter to do quick check if this add-on is active.
authorChuck Scott <cscott@gaslightmedia.com>
Tue, 27 Nov 2018 20:45:34 +0000 (15:45 -0500)
committerChuck Scott <cscott@gaslightmedia.com>
Tue, 27 Nov 2018 20:45:34 +0000 (15:45 -0500)
setup/commonHooks.php [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index ab7fbda..46c766a
@@ -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 ){