From d431cb9b6315c5591edc2d4a46098740b8983448 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 26 Sep 2016 09:38:56 -0400 Subject: [PATCH] adding filter to get member categories for use in the theme's search --- setup/frontHooks.php | 5 +++++ 1 file changed, 5 insertions(+) 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; }); -- 2.17.1