From b80ed466f615a1ab171238104bfad53c07c63063 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Tue, 27 Nov 2018 15:58:17 -0500 Subject: [PATCH] Added filter to do quick check if this add-on is active. --- setup/commonHooks.php | 7 +++++++ 1 file changed, 7 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 11f24a7..3f24269 --- a/setup/commonHooks.php +++ b/setup/commonHooks.php @@ -28,6 +28,13 @@ * depending on where the hook is called from. */ +/** + * Filter will return true if the plugin is active. + */ +add_filter( 'glm-members-search-plugin-active', function( $active ){ + return true; +}, 10, 1 ); + /* Filters to ask for a page to be indexed and removed * -- 2.17.1