From 873c5a6ccd6f3dca41bb8b102d0fe3bfc39a5329 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 11 Apr 2017 16:21:19 -0400 Subject: [PATCH] Added a new filter so brewbakers could display the member_types in the search form on the member list' --- setup/frontHooks.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/setup/frontHooks.php b/setup/frontHooks.php index a870082..0152ac4 100644 --- a/setup/frontHooks.php +++ b/setup/frontHooks.php @@ -100,3 +100,12 @@ add_filter('glm_custom_fields', function($attribute, $id) { 10, 2 ); +add_filter('glm_custom_fields_member_types', function() { + + $query = "SELECT name FROM " . GLM_MEMBERS_PLUGIN_DB_PREFIX . "member_type"; + $result = $this->wpdb->get_results( $query, ARRAY_A ); + return $result; + }, + 10, + 2 +); -- 2.17.1