From fb2ddca0b8ff38229975917ce970d4c20499541a Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 3 Nov 2017 15:53:29 -0400 Subject: [PATCH] fixing member images filter by adding the priorty and number of args the member images filter wasn't working properly due to missing priority and args number --- setup/frontHooks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/frontHooks.php b/setup/frontHooks.php index 89271965..d0579c97 100644 --- a/setup/frontHooks.php +++ b/setup/frontHooks.php @@ -331,12 +331,12 @@ if (!function_exists('addUrlProtocol')) { /* * */ -add_filter('member_images', function($memberID, $featured=false){ +add_filter('member_images', function($memberID, $featured = false){ require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataImages.php'; $Images = new GlmDataImages($this->wpdb, $this->config); $imageGallery = $Images->getGallery($this->config['ref_type_numb']['MemberInfo'], $memberID,$featured); return $imageGallery; -}); +}, 10, 2); add_filter('member_categories', function(){ include_once GLM_MEMBERS_PLUGIN_CLASS_PATH . '/data/dataCategories.php'; $categories = new GlmDataCategories( $this->wpdb, $this->config ); -- 2.17.1