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:
c3fefc3
)
removing print r test statements
author
Anthony Talarico
<talarico@gaslightmedia.com>
Tue, 11 Apr 2017 20:03:33 +0000
(16:03 -0400)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Tue, 11 Apr 2017 20:03:33 +0000
(16:03 -0400)
setup/frontHooks.php
patch
|
blob
|
history
diff --git
a/setup/frontHooks.php
b/setup/frontHooks.php
index
a2569e5
..
a870082
100644
(file)
--- a/
setup/frontHooks.php
+++ b/
setup/frontHooks.php
@@
-46,8
+46,7
@@
add_filter('glm-member-db-front-members-detail-files', function( $content, $id)
$file_path =GLM_MEMBERS_PLUGIN_MEDIA_URL. "/files/";
$sql = "SELECT name, file_name,caption FROM " . GLM_MEMBERS_PLUGIN_DB_PREFIX ."files WHERE ref_dest = $id;";
$results = $this->wpdb->get_results($sql);
-
- print_r($results);
+
foreach($results as $result){
$caption = ($result->caption !== '' ? $result->caption : $result->name);
$file = "<a class='glm-file-detail' href='$file_path" . "$result->file_name" . "'>" .$caption .'</a>';