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

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..16d7183
--- /dev/null
@@ -0,0 +1,7 @@
+# Don't save smarty cache directories or files
+misc/smarty/**
+media/images/**
+.project
+.buildpath
+.settings
+
diff --git a/setup/commonHooks.php b/setup/commonHooks.php
new file mode 100755 (executable)
index 0000000..4519b9d
--- /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-leads-plugin-active', function( $active ){
+    return true;
+}, 10, 1 );