Questions tagged [user-meta]
User meta data consists of key-value pairs pertaining to the according user ID.
886 questions
0 votes
0 answers
31 views
Sharing website link shows author name but only on GROUPME
When I share my website link on groupme it shows my author name. I have changed my nickname to the website name and it has not changed. I have downloaded plugins to hide the metadata and so on. I also ...
1 vote
0 answers
36 views
Removing user removes user meta?
Sorry for the basic question, but I couldn't find an answer by reading the docs. When we delete user in the WP admin area, will WP delete the associated user_meta too?
0 votes
1 answer
50 views
How can I allow a user to add any number of custom user_meta fields on a WordPress front-end page?
I have a requirement to generate a rate calculator accessible to multiple users, each with their own set of criteria and values. I'm using user_meta fields to store the values for each user. One ...
0 votes
1 answer
53 views
Default Usermeta Entries for every newly created user?
we have a Buddyboss page running with 30k users. Our usermeta Table is growing fast because of a few plugins we use which all seem to write a lot of settings to it. I try to remove as many obsolete or ...
0 votes
1 answer
50 views
wp_user_meta doesn't return data in a foreach loop
I am attempting to get meta data in a list of WP users using this code, but am unable to retrieve the meta data: $args = array( 'meta_key' => 'last_name', 'orderby' => 'meta_value', '...
0 votes
1 answer
127 views
How to use 2 different databases but share the same user in wordpress
I have 2 wordpress websites on the same server, one is bloo.com and the other is forum.bloo.com. each site has its own database, they have their own wp_content, each has its own file separately, but I ...
1 vote
2 answers
79 views
Include New Meta Field In New User Registration Email
I am currently using the below code to add some meta fields to my users and would love to include these in their registration email, but it appears they are not created before the email is sent. // ...
1 vote
0 answers
74 views
add_filter( 'user_has_cap','my_function', 10, 3 ); and call to get_users in my function triggers an infinite loop in user list
I use: add_filter( 'user_has_cap','my_function', 10, 3 ); In user list to allow users to edit only a specific list of users with a meta user identical to a current user connected. To get the list of ...
0 votes
1 answer
104 views
Sort users in admin screen by meta value whether it exists or not
I want to list all users and order them by a meta value. Several users have it and some do not, but I want to be able to list them all and group them accordingly. I have the following code but it only ...
0 votes
1 answer
45 views
generate an array of user login date using update_user_meta();
I have begun to create a function to store last login date of user using time() function. Perfectly works! Now I want to store in a serialize array a list of all user login date. Question : Do I have ...
0 votes
2 answers
335 views
Is there a way that we can change wordpress user id?
I would like to ask if there's a WordPress plugin that can be used to modify the user ID of the user. Instead of 1 or 4, I will add a prefix like 387101 or 387104. If none, is there someone here in ...
0 votes
1 answer
89 views
Administrator user cannot access dashboard after localwp import
This is the 2nd time this has happened in the past few weeks so I thought I would try and get some ideas on how to overcome. There are a few others in the localwp community that have had the same ...
0 votes
2 answers
41 views
Transform user name before displaying
Users are created whith name in upper case on my site, but some admin want to display it in lower case. I had a custom field in user profile to identified those admin, but I don't know what hook I can ...
0 votes
1 answer
61 views
Group users by meta field, with name of meta field as group title
I'm creating a employee photo directory based off users from my site. I'm trying to add front end filtering for this query and I have it mostly working. What I'm trying to accomplish is to sort the ...
0 votes
1 answer
84 views
Hide username from blog post source code
I discover some of failed login attempts on website i manage, some of it the attackers know the username who published the post, i looked into wp-json and it is not show or leaks anything. but when i ...