From c70a4e1d8f42399cc0e4a023a7c2ddc5ec0915e2 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 10 Aug 2018 14:04:32 -0400 Subject: [PATCH] Add filter To test if plugin is enabled. --- setup/adminHooks.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup/adminHooks.php b/setup/adminHooks.php index 879384b..baf00cb 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -25,3 +25,9 @@ * * Also note that parameters will be in the context of the main admin controller constructor. */ +add_filter( + 'glm-members-forsale-enabled', + function( $content ){ + return true; + },10, 1 +); -- 2.17.1