Added filter to do quick check if this add-on is active.
authorChuck Scott <cscott@gaslightmedia.com>
Tue, 27 Nov 2018 20:54:56 +0000 (15:54 -0500)
committerChuck Scott <cscott@gaslightmedia.com>
Mon, 16 Sep 2019 15:49:24 +0000 (11:49 -0400)
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..f293b9b
--- /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-nearme-plugin-active', function( $active ){
+    return true;
+}, 10, 1 );