From ae77ce58bb25869c66c8319668408cbcd2c031db Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Tue, 27 Nov 2018 15:40:35 -0500 Subject: [PATCH] Added filter to do quick check if this add-on is active. --- setup/commonHooks.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/setup/commonHooks.php b/setup/commonHooks.php index 2226daa..b3194ec 100755 --- a/setup/commonHooks.php +++ b/setup/commonHooks.php @@ -26,10 +26,12 @@ * 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() { +/** + * Filter will return true if the plugin is active. + */ +add_filter( 'glm-members-contacts-plugin-active', function( $active ){ return true; -}); +}, 10, 1 ); /** * Filter to get the user meta for a contact. -- 2.17.1