From 9811896d125c6224890770f70322c7630d2d8a34 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 7 Jun 2016 12:59:58 -0400 Subject: [PATCH] Added fronthook filters to access the config from the theme --- setup/frontHooks.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/setup/frontHooks.php b/setup/frontHooks.php index 9f9438eb..c037f9eb 100644 --- a/setup/frontHooks.php +++ b/setup/frontHooks.php @@ -155,3 +155,13 @@ function glm_members_only_template( $template ) { } return $template; } + +/* + * + */ +add_filter('glm_associate_config', function() { + return $this->config; +}); +add_filter('glm_associate_terms', function() { + return $this->config['terms']; +}); \ No newline at end of file -- 2.17.1