From: Anthony Talarico Date: Mon, 26 Sep 2016 13:38:56 +0000 (-0400) Subject: adding filter to get member categories for use in the theme's search X-Git-Tag: v2.7.0^2~17^2~11 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=d431cb9b6315c5591edc2d4a46098740b8983448;p=WP-Plugins%2Fglm-member-db.git adding filter to get member categories for use in the theme's search --- diff --git a/setup/frontHooks.php b/setup/frontHooks.php index e584ff4c..a331294c 100644 --- a/setup/frontHooks.php +++ b/setup/frontHooks.php @@ -265,6 +265,11 @@ function glm_members_only_template( $template ) { /* * */ +add_filter('member_categories', function(){ + include GLM_MEMBERS_PLUGIN_CLASS_PATH . '/data/dataCategories.php'; + $categories = new GlmDataCategories($this->wpdb, $this->config); + return $categories->getListSortedParentChild(); +}); add_filter('glm_associate_config', function() { return $this->config; });