From ad7de944721424b99ae9d74a5c9a2642776466f9 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 7 Aug 2017 14:47:20 -0400 Subject: [PATCH] Update the list model for getting custom field filter working. Custom field filter for setting the request array up with custom fields attributes for the member list short code. --- models/front/members/list.php | 2 +- setup/shortcodes.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/models/front/members/list.php b/models/front/members/list.php index fedb5836..2d55a7d8 100644 --- a/models/front/members/list.php +++ b/models/front/members/list.php @@ -208,7 +208,7 @@ class GlmMembersFront_members_list extends GlmDataMemberInfo $actionData['request']['region-search'] = $_REQUEST['regionSearch']; } */ - + $actionData = apply_filters( 'glm-member-db-front-search-request', $actionData ); // Check for "show" shortcode parameter (what elements to show on the page) $settings = array(); $showList = $actionData['request']['show']; diff --git a/setup/shortcodes.php b/setup/shortcodes.php index a15c1539..9f862e77 100644 --- a/setup/shortcodes.php +++ b/setup/shortcodes.php @@ -75,7 +75,7 @@ if ( isset( $config['settings'] ) && $config['settings']['enable_members'] ) { 'table' => GLM_MEMBERS_PLUGIN_DB_PREFIX.'settings_general', 'cacheControl' => array( 'active' => false, - 'cacheTime' => '2 WEEK' // MySQL "DATE_ADD" time interval - see https://www.w3schools.com/sql/func_date_add.asp + 'cacheTime' => '2 WEEK' // MySQL "DATE_ADD" time interval - see https://www.w3schools.com/sql/func_date_add.asp ), 'attributes' => array( 'type' => false, @@ -187,10 +187,11 @@ if ( isset( $config['settings'] ) && $config['settings']['enable_members'] ) { 'action' => 'featured', 'table' => GLM_MEMBERS_PLUGIN_DB_PREFIX.'settings_general', 'attributes' => array ( - 'number' => 1 + 'number' => 1 ) ) ); + $glmMembersShortcodes = apply_filters( 'glm-custom-fields-shortcodes', $glmMembersShortcodes ); $glmMembersShortcodesDescription = ' ShortcodeAttributeDescription -- 2.17.1