projects
/
WP-Plugins
/
glm-member-db-fields.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fab0a93
)
Added a new filter so brewbakers could display the member_types in the search form...
author
Laury GvR
<laury@gaslightmedia.com>
Tue, 11 Apr 2017 20:21:19 +0000
(16:21 -0400)
committer
Laury GvR
<laury@gaslightmedia.com>
Tue, 11 Apr 2017 20:21:19 +0000
(16:21 -0400)
setup/frontHooks.php
patch
|
blob
|
history
diff --git
a/setup/frontHooks.php
b/setup/frontHooks.php
index
a870082
..
0152ac4
100644
(file)
--- 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
+);