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

diff --git a/setup/commonHooks.php b/setup/commonHooks.php
new file mode 100755 (executable)
index 0000000..83d78b2
--- /dev/null
@@ -0,0 +1,10 @@
+<?php
+// 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-packaging-plugin-active', function( $active ){
+    return true;
+}, 10, 1 );