Admin users panel ETH addreses column code help
-
Hi, I need help with the following, you might be also interested into adding this functionality too.
I give you the following code, it shows each ETH address from your WP plugin own database table from each user by your plugin.
I would like them to be shown into the users admin panel, so I can see the address owners in the admin panel, I know I’m just a step of getting it but I got stuck.
?Could you please give me some input?
Here’s my code working on a new .php file in the root of a WordPress installation:
w w w.YOURWEBSITE.com/testfile.php
(it will show “echo” the addresses from database)<?php require_once('wp-load.php'); $get = $wpdb->get_results(" SELECT ethpress_addresses.name FROM ".$wpdb->prefix."ethpress_addresses as ethpress_addresses "); foreach ( $get as $print ) { ?> <pre> <?php echo $print->name; ?> </pre> <?php } ?>
Here is the code for making the new column:
add_action('manage_users_columns','eth_modify_user_columns'); function eth_modify_user_columns($column_headers) { $column_headers['eth_address'] = 'ETHaddress'; return $column_headers; }
I need the code to get each addres belonging from each user ID (I guess is “id”) and input them on each user. ??
Can’t get to make it happen, help would be much appreciated, you can also get this code to your plugin to add such functionality of course.
- The topic ‘Admin users panel ETH addreses column code help’ is closed to new replies.