Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
80 views

Add custom css to specific user

I need help with something for my wordpress site. I want to add custom css to a specific user. For example, user B. but I couldn't do it. Here I tried the following css code: div [user="id"] ...
ByWorld's user avatar
0 votes
1 answer
21 views

Some data of one custom user profile is erased when I update another custom user profile

I have some problems with custom user profil. I Created 2 différents user profiles : one is calld "particulier" the other is called "entreprise" You can see the code below. The ...
Timama's user avatar
  • 3
0 votes
2 answers
133 views

User Query Multiple Orderby Clause

I'm having trouble getting consistent results from a WP_User_Query when ordering by multiple meta values. There is a meta field that contains a serialized list of IDs, and I need to display users with ...
davvcarpenter's user avatar
0 votes
1 answer
57 views

No plugin populate user information in to form

I want to create my own form in order to get information on my site. For learning purposes, I do not want to use a plugin. So, please don't tell me to use one. I know they are easy to use, but I want ...
Mac's user avatar
  • 1
0 votes
2 answers
890 views

How to block specific user id in custom login form?

I've been looking for this method for weeks, but still can't find it. There are so many sites that discuss how to create a custom login page, but they don't cover how to block a specific id like the ...
Ari's user avatar
  • 3
0 votes
0 answers
38 views

Can we hide a certain user in WP?

Is it possible to hide a user in Users panel of WordPress without using any plugin. I had achieve this using plugins but I want to do it the old fashion way if its possible, like write a code in ...
techshqq's user avatar
0 votes
0 answers
50 views

Is it possible assign a secondary existing role to already existing one?

Im interested to know if it possible Assign a secondary role IF the user it register by a specific role. For example: If the user register as "OWNER" wordpress must assign the existing user ...
Marco Crisgod's user avatar
0 votes
0 answers
241 views

Invitation link to a site in multisite network does not work?

I have a WP Multisite, and when a subsite want's to invite a user to the site it will send out an invitation link which looks like this: https://example.com/testsite/wp-activate.php?key=...
jockebq's user avatar
  • 463
0 votes
2 answers
474 views

Condition OR for current user ID

I'm tryng without success to create a custom backend based on user ID, if user id is different the 1 or different then 2 show custom backend. This is my code but it doesn't work, any help would be ...
user1818326's user avatar
5 votes
1 answer
648 views

How to update the delete user confirmation form?

I want to update the confirmation form for delete user. If user has posts, it shows Attribute all content to - option to reassign other author for his posts. It takes lots-of time to load the page, if ...
Hasmukh Kalsariya's user avatar
0 votes
1 answer
2k views

how to make a custom field readonly or disabled by user role?

i am trying to make a simple custom field (made without a plugin) readonly or disabled for a specific user role in functions.php, is this possible ? thanks
sofdesigne's user avatar
0 votes
1 answer
32 views

How to make wordpress use a non-wordpress users table?

I've been searching and all I can find is how to share the users table from multiple wordpress sites. I tried using define( 'CUSTOM_USER_TABLE', 'Users' );, but it's not working. I image it is because ...
user3642768's user avatar
2 votes
1 answer
436 views

How can I add data to a custom column in the Users section of the wordpress backend?

Can anyone help me with adding data to a new User table column that I added? In the wordpress backend, in the Users section, I added a custom column called "Last Name". Now, I'd like to add last ...
sansae's user avatar
  • 189
1 vote
1 answer
97 views

Change the Labels of Users to Customers in Admin

Ok, I've been searching for over an hour for something I thought (and still think) is pretty simple. I need to change the title Users to Customers in the admin for a client. I can and have easily ...
K_C's user avatar
  • 111
0 votes
0 answers
470 views

WP_User_Query Search Multiple Keywords from a Multi-Select Field?

My code below works to list a single user when I ask to search for a single username; however, I am unable to list multiple users when asking to search for multiple usernames. Here is a brief ...
Michael's user avatar
  • 281
1 vote
1 answer
3k views

Updating Custom WordPress User Meta Field via REST API

I have created an empty user meta field for a user called phone_number via the add_user_meta() function. When I use the get_user_meta function, I can see an empty string for the meta field which is ...
Tom's user avatar
  • 11
1 vote
0 answers
122 views

Add New User, extra fields which are required?

I use these two functions to be able to set the first and last name when I go to Add New User: // Add First and Last name to Add New User function add_new_user_name_fields($user) { ?> <...
jockebq's user avatar
  • 463
0 votes
0 answers
103 views

How to prevent users from deleting their accounts?

I'd like to prevent user from deleting his/her account. This is mainly because of our internal rules requiring either two users being deleted at once or none at all. The only way to delete accounts ...
Spook's user avatar
  • 103
1 vote
1 answer
1k views

How to pass external variables to the wp_new_user_notification_email filter?

We're trying to customize the default e-mail new users receive when registering on our website. For this, we are using the wp_new_user_notification_email filter added in WP4.9.0 For our functions.php ...
thisisbbc's user avatar
1 vote
0 answers
616 views

user_profile_update_errors hook not executing

I'm trying to use the user_profile_update_errors hook, however it doesn't appear to be executing. I'm calling it like this: add_action('user_profile_update_errors', 'blm_register_result', 10, 3); ...
Brett's user avatar
  • 414
1 vote
1 answer
922 views

Function to allow "Anyone can register"?

I'd been crawling the codex but can't seem to find a function that will allow me to programmatically enable the User registration system. Hopefully, I can make a custom plugin that will enable User ...
arvil's user avatar
  • 139
1 vote
0 answers
757 views

WordPress Delete Users from backend doesn't work

When I delete user & that user content from backend, user was deleted successfully but wordpress doesn't delete that user posts & comments even I select "Delete all content" radio button. Does ...
Por's user avatar
  • 382
0 votes
1 answer
571 views

Deleted a user with administrator rights. Now all the data/content/images are lost. how to recover them back

I have Deleted a user with administrator rights. Now all the data/content/images are lost. how to recover the lost content and images back
robin's user avatar
  • 1
1 vote
1 answer
323 views

How can I allow access to multiple users, using the same login, at the same time?

I am an entry level wordpress/website developer, learning how to do more and be of more value. I'm currently working on my girlfriends website and we need it to be a membership site to protect premium ...
Trevor Hauck's user avatar
1 vote
1 answer
1k views

Make custom user table column filterable

I am adding a new custom column to the users as below. This adds the row and returns the correct value how I am unable to filter or order by it in the list. Could someone explain how this is done? ...
frank astin's user avatar
1 vote
1 answer
1k views

Creating user relationships

I have a project where I feel I need to create relationships between users but since this is not natively implemented in wordpress as far as am concerned then I will need advice on how to do it. One ...
nelson's user avatar
  • 97
-1 votes
1 answer
629 views

Use wp_login_form function to login with a custom user table?

Is it possible to use WP built-in function wp_login_form on a custom non-wp user table?? It would be awesome if i could at the non-wp user table as an argument $args = array( 'redirect' => ...
alex's user avatar
  • 1,112
0 votes
1 answer
809 views

Delete a user from frontend

I'm developing a user management table, in which an user (I've already set restriction for for some specific roles) can create/edit or delete a user. How can I delete a user by clicking on delete link ...
Akshat's user avatar
  • 1,197
2 votes
0 answers
207 views

Unique User Account Number + Displayed Via Shortcode

I've seen a couple articles on creating unique account numbers for users: https://stackoverflow.com/questions/37693209/create-unique-account-number-for-every-user-that-registers-to-the-system-using-w ...
Brandon Lucius's user avatar
1 vote
0 answers
325 views

Authenticating to Wordpress, using my own authentication two-factor system

This is basically the same request as Integrating WordPress to my website, while keeping my own authentication system I am using the below code as requested. It seeks authentication from our ...
user121816's user avatar
1 vote
0 answers
2k views

Allow the comment author to delete their own comments

I've looked high and low and I can't find anything that will allow the logged in comment author to delete their own comment from the front end. All I want is a delete link under their comment that ...
Pete's user avatar
  • 1,048
1 vote
2 answers
3k views

Does wp_delete_user() remove all user content?

I'm deleting WP users with wp_delete_user(). It works well. I noticed when I manually delete a user in the WP Admin it asks first to "Delete all content" or "Attribute all content to: ". I want ...
Ken Williams's user avatar
0 votes
1 answer
226 views

connect users to Custom post types

I’ve created a Custom Post Type to manage Events and now, i would like the users of my site (only registered ones) to be able to register to any events created. On the events page, they would just ...
Ludovic Dandois's user avatar
0 votes
2 answers
536 views

How can I save cookies to members

I have a site that has a membership. Currently, we allow customization of preset themes. This uses cookies, however I want my users to have the same theme across all of their devices. I want to be ...
user avatar
0 votes
1 answer
34 views

How to display all post from the same current usermeta

When someone register to my site, they must fill this field (as user meta data) : Name : A Country: B Region: C so.. when I or other author was log in , I need a link that will display all post from ...
awangfaisal's user avatar
0 votes
1 answer
138 views

Confusing problem with displaying message recipient metadata

Really rough time trying to wrap my head around how to fix this issue. Users can private message each other on my site. As shown in the image below, you can see that I display the message author on ...
kosmicbird's user avatar
0 votes
1 answer
180 views

Create users via PHP

I'd like to update my users list with some user from a csv file generated by another database (witch i can access too) i'd like to create dynamically a user (with username, password and so on) and ...
Biro's user avatar
  • 101
-3 votes
1 answer
50 views

How to give different user access to different people?

I have a video tutorial website where I have to provide videos. For that purpose I have to give different user access to those who login to particular courses. So can you please help me what is the ...
roja.k's user avatar
  • 1
0 votes
1 answer
30 views

Highlight specific user with custom field value

I'm working on a Wordpress project with some friends from school. But there's a problem with highlighting a user on the website. The idea is to create a 'User of the month' thing. In the user ...
Jannick Nijholt's user avatar
5 votes
3 answers
5k views

Integrating WordPress to my website, while keeping my own authentication system

I've recently integrated WordPress to my website and I've been trying to find out the correct way to replace Wordpress' authentication system with the one on my website. My website already has a user ...
apatik's user avatar
  • 161
0 votes
0 answers
1k views

Let user delete comment on front end only

I have a edit comments page on my sites front end and have placed a delete comment link for users. The link works however it takes the user to the backend to confirm the comment deletion. I cant have ...
730wavy's user avatar
  • 193
1 vote
3 answers
2k views

Bulk delete users from a csv list

I have a WordPress site with 65,000 registered users, about 10,000 of those users are spam bots, inactive account, hard email bonces etc. I have them gathered in a CSV list, how can I use that csv ...
Chozen's user avatar
  • 163
1 vote
1 answer
312 views

User can not login

I successfully inserted a new user to WP database and I want this user to be logged in right after this. I do it like this User Login Form <?php function dlf_form() { ?> <form ...
Slimshadddyyy's user avatar
8 votes
1 answer
2k views

Automatically delete inactive users after 2 months

I am trying to modify this function: // automatically delete users after 7 days in wordpress function wcs_auto_delete_users() { global $wpdb; $query = $wpdb->prepare( "SELECT ID FROM $wpdb->...
pereyra's user avatar
  • 475
0 votes
0 answers
2k views

Get id from database

I need this ID to delete users from table. My plugin crate new table in DB when he is activate. All this code is in main.php, and in second.php i have only form that display my results.. and i include ...
x-y-z-select's user avatar
1 vote
0 answers
200 views

Allow guests to use WP Customizer but disable save button

I've seen in some WP demo themes that developers let users to see a theme customizer (allowing to try the customizations) disabling the save button as well. So the question is how to do that in a ...
SLH's user avatar
  • 1,452
1 vote
1 answer
3k views

Auto delete Wordpress users according to time

On my WordPress site I require registration with email confirmation to help filter out spam users. How do I delete users that haven't activated their accounts by email automatically? Is it possible ...
krish's user avatar
  • 111
0 votes
2 answers
3k views

New User Save Filter

I'm using the new(ish) filter add_action( 'user_new_form', 'funcy', 9 ); to add custom fields to Create A New User page. I'm then using add_action( 'personal_options_update', 'save_user_meta' ); ...
Howdy_McGee's user avatar
  • 20.8k
0 votes
0 answers
111 views

Change the functionality of wordpress users module in admin

I want to restrict wordpress admin to view all users in user list. For say, I have created custom roles (company users, employee). A company user type role can have multiple employees. I want ...
Pradeep Singh's user avatar
8 votes
4 answers
13k views

Find out who deleted a page or post?

Someone moved a very important page on my website into the trash, and I do not know who did it! It was not deleted permanently so I don't need to worry, in that sense. The revisions, when I restored ...
Jacob Raccuia's user avatar