Question
This is my first contact with WP Development, and I'm trying to not display the WP admin bar after the registration. Since it's metadata called 'show_admin_bar-front', I'm updating that right after creating the user. if(count($error) == 0) { ... 0 2 days 0 Answers 4 views ## Difference between last_name and user_lastname Question As per documentation, the method get_the_author_meta() has a$field argument with the following possible values: admin_color aim comment_shortcuts description display_name first_name ID jabber last_name nickname plugins_last_view plugins_per_page rich_editing syntax_highlighting user_activation_key user_description user_email user_firstname user_lastname user_level user_login user_nicename user_pass user_registered user_status user_url yim I wonder, what is the difference between last_name and user_lastname (first_name and user_firstname respectively ). Which property am I supposed to use and what ...
0
2 days 0 Answers 9 views

## How to add custom detail page for a Subscriber at Admin Panel

Question
I have created a custom page which shows the list of Users(Role = 'Subscriber'). I named this page "Reporting" & It is based on wp_list_table. Now I want to show the user details (having custom layout & user meta). I ...
0
3 days 0 Answers 6 views

## WP_User_Query using meta_query with multiple fields not working, returns everything?

Question
I have searched and tried various suggestions, to no avail. If I don't use meta_query and just use a single set of args it shows the proper matches, but when multiple fields are introduced the whole thing is ignored. I've ...
0
6 days 0 Answers 12 views

Question
What is the basic way to use $wpdb and get_results? This is my code: global$wpdb; $q="SELECT * FROM wp_usermeta WHERE meta_key = 'nickname' AND user_id = 771";$result = $wpdb->get_results($q); echo $result; The query string is good because I can run it in phpmyadmin and ... 0 6 days 0 Answers 18 views ## Update user meta of author when post content is viewed Question I have a value that I'm trying to store as user meta for authors on my site. I need it to update itself every time the content of a post is viewed for that author. Here's as far as I've ... 0 1 week 0 Answers 19 views ## wait for DB to finish before reloading page Question In myaccount page I have some php logic going on along with update_user_meta. The status of the user meta depends on what the page will display. The problem is that page refreshes before the user_meta get updated, so currently I'm ... 0 1 week 0 Answers 18 views ## get_user can’t read variable Question I have this little routine to find the user_id based on a usermeta field..$scaleData = json_decode($reading, TRUE);$deviceid = $scaleData["imei"]; echo$deviceid; // check to confirm is working. Yup \$WhoIsUser = get_users( array( 'meta_key' => 'deviceid', 'meta_value' ...
0
1 week 0 Answers 20 views