From bbcc9191312c810e90398b4d70080a8af531f1cf Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Tue, 27 Nov 2018 15:24:38 -0500 Subject: [PATCH] Added filter to do quick check if this add-on is active. --- setup/commonHooks.php | 5 +++++ 1 file changed, 5 insertions(+) mode change 100644 => 100755 setup/commonHooks.php diff --git a/setup/commonHooks.php b/setup/commonHooks.php old mode 100644 new mode 100755 index f78b67f..2226daa --- a/setup/commonHooks.php +++ b/setup/commonHooks.php @@ -26,6 +26,11 @@ * Also note that parameters will be in the context of the main admin controller constructor. */ +// Filter other plugins can use to do a quick check if this plugin is installed and active. +add_filter( 'glm-member-db-contacts-active', function() { + return true; +}); + /** * Filter to get the user meta for a contact. */ -- 2.17.1