From: Laury GvR Date: Tue, 7 Jun 2016 16:59:58 +0000 (-0400) Subject: Added fronthook filters to access the config from the theme X-Git-Tag: v2.0.7^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=9811896d125c6224890770f70322c7630d2d8a34;p=WP-Plugins%2Fglm-member-db.git Added fronthook filters to access the config from the theme --- 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