From: Chuck Scott Date: Tue, 27 Nov 2018 20:58:17 +0000 (-0500) Subject: Added filter to do quick check if this add-on is active. X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=b80ed466f615a1ab171238104bfad53c07c63063;p=WP-Plugins%2Fglm-member-db-search.git Added filter to do quick check if this add-on is active. --- 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 *