Questions tagged [users]

Refers to accounts with the ability to login and participate in a WordPress site.

7
votes
0answers
540 views

User-edit role setting distinct from wp_capabilities?

I need find out how $profileuser->roles is set. wp_capabilities can hold multiple roles, whereas user-edit role caters only for a single role. Under certain circumstances it is possible for there ...
5
votes
0answers
83 views

How to track user progress?

I'm looking to build a very lightweight learning management system of sorts. I'll have 2 custom post types "Course" and "Lesson". I will associate the Lessons to the Courses, probably by using the ...
3
votes
0answers
246 views

WordPress REST API call generates nonce twice on every call

I'm trying to login a user via the REST API, and then retrieve the current user on subsequent requests. As per the documentation, in my plugin, I am creating and retrieving a nonce after a successful ...
3
votes
0answers
170 views

Where to Store Custom User Fields

I've built an enterprise Wordpress site and we are currently designing an automated import of company user data directly into the Wordpress database, so it's not manual. This user data has more data ...
3
votes
0answers
1k views

How to add quick edit and bulk edit fields to users admin section

Salutations, is there a way to add quick edit and bulk edit fields for the users section in wordpress. I have found a lot about post types and custom post types but i'm specifically looking to add ...
2
votes
0answers
48 views

Wordpress admin deleted user details not removed in database. How to delete WordPress Users from Database

When we delete a user from the WordPress admin panel it's removed, but the user values not deleted in the database. Anyone let me know how to fix the issue. ? What is the reason for this issue.?
2
votes
0answers
33 views

How can I find users that didn't set a password?

Is it possible to find (and bulk delete) users that registered on my WordPress site but never set a password over their confirmation email?
2
votes
0answers
91 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 ...
2
votes
0answers
377 views

Add custom fields to the user profile

I want that users can define a headline which will be displayed as a title to their user description. So I looked around and found a way to include new custom fields to the profile page. ...
2
votes
0answers
244 views

Authenticate with a Rails app?

There seems to be lots of posts where another app / website uses a WP website to authenticate against. I am looking for the opposite. I have a Rails app that uses Devise for authentication. I have a ...
2
votes
0answers
140 views

Undeleting a deleted user

I have deleted a subscriber and now everything is gone that I had on my website! How do I 'undelete' him?
2
votes
0answers
155 views

Multiple authors with different “author roles”

I´m using Co-Authors Plus plugin to manage multiple authors in a e-magazine, but I´m trying to go further and credit "text authors", "photography authors" and "video authors", so I´m adding a new ...
2
votes
0answers
158 views

Share user table from WP with Drupal

I'm developing a sister website to a well-established private site that is already built in Wordpress. I can't use Wordpress to create what I need and I am therefore using Drupal. The owners of the ...
1
vote
0answers
10 views

How to create a page that lists all the experts(Users with same access permission as author)?

I want to create a page that lists all the experts(Users with same access permission as author). One solution I could think of is to create a page from the WordPress dashboard (Eg:medical-experts) ...
1
vote
0answers
39 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) { ?> <...
1
vote
0answers
44 views

How to delete all customer user account that haven't placed a single order?

Recently I've had an influx of spam users registering on my Wordpress website and I am trying to delete them all if: they have a "Customer" role haven't placed at least one order before As I could ...
1
vote
0answers
19 views

How can i customize the export personal data file?

I want to know is there a way to customize the export personal data page? If you go to wp dashboard > tools > export personal data, you can download an html file which contains your personal data. Is ...
1
vote
0answers
29 views

Good way to block users within a multisite setup without deleting them?

This is probably a common problem with multiple possibilities to solve. However I am asking for an easy solution as I guess I am not the first one to have this problem. Assume we have a huge company ...
1
vote
0answers
29 views

WP_User_Query by meta_value with Number returns nothing

When querying users with WP_User_Query by meta_value like '23432' (as string or integer) it returns nothing. If searched by text like 'admin' it returns all users where meta_value equals 'admin'. ...
1
vote
0answers
17 views

WP users page doesn't show users count by role

I'm running a wp site which have 70.000 users imported from an old vbulletin forum. Everything works well except for an issue I have on the users page in the backend. As you can see in the attached ...
1
vote
0answers
52 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); ...
1
vote
0answers
45 views

WP_User_Query - searching multiple fields

I have a search engine where I can search for users on the front end. Profiles have mulitple custom fields. I'm just searching first and last name in this example. The problem is I can search for a ...
1
vote
0answers
68 views

How to force authors to 'submit for review'?

So currently when authors add a post they can publish it straight away. How can i change it so that all their posts need to be reviewed first? I've seen a few codes that can solve that but when it ...
1
vote
0answers
26 views

How to add user from front end

These all things are about WordPress, I want to know that how to give permission to "Subscriber" to add another user having a role "shopper" (I have already made a shopper role using code in function....
1
vote
0answers
30 views

What Is the Proper Way to Merge Usermeta Table to a an existing WP Database?

I'm currently testing some features on a sandbox environment. I have an existing production website and I'd like to ship my production users and other related tables on new sandbox environment. While ...
1
vote
0answers
43 views

Problem with automatic role change through cron job

I have a function called by a daily cron job that automatically changes the role of users after a period of time. The 1st role update should happen 120 days after registration, and a 2nd role update ...
1
vote
0answers
47 views

WP_User_List -> How to open a new edit-page in WordPress admin backend!

i'm doing my first plugin and got stuck with linking a row-action to a new editing-site! What i'm trying to do: -> Manage User Meta on a special settings site. Add some fields for documents and ...
1
vote
0answers
83 views

Subsite access without being a member of the subsite in wp multisite network

How can a user access a subsite without being the member of that subsite in a wp multisite network? What I understand is that a user can not access a private post in a subsite if he is not the ...
1
vote
0answers
169 views

how to get WordPress admin user table columns name in my plugin

I used this to get User list table columns Name. add_filter( 'manage_users_columns', array($this , 'new_modify_user_table')); public function new_modify_user_table( $column ) { $column // ...
1
vote
0answers
43 views

Turn off password requirement

We are using wordpress internally. We only want the user to login with a username and no password. How would I disable the password requirement when we create a new user account on the backend?
1
vote
0answers
15 views

How to duplicate a wordpress user and all his/her data from custom fields?

I have many user profiles with a lot of data via custom fields, and have to add it manually. I am wondering how to duplicate users, and then modify some of the data to speed up the process. For what ...
1
vote
0answers
363 views

Searchable meta value in user.php

I have created a new column in the user table list (admin page) and would like the column to be searchable in the search query, How do i add the meta to the search users query ? /** * Create user ...
1
vote
0answers
110 views

Reset Password policy

Looking for to add reset password policy. Password specifications : 12 characters in length, 1 uppercase letter, 1 lowercase letter, 1 number, and 1 special character. I find a hooks for manage ...
1
vote
0answers
613 views

Allow Contributors to Upload Files

I would like to allow contributors to upload a file. So I use this recommended plugin WP Role Editor After activated, I go to the plugin from User > User Role Editor and then select contributor in ...
1
vote
0answers
17 views

Associate Post Rating With User

I am building a website that will eventually house items such as "Album Reviews". There are many rating plugins out there, but I would like to find a way to house a user's rating history within their ...
1
vote
0answers
99 views

Rewrite Rules and Login Issue

I have rewritten the rules in the .htaccess file of my root domain and now it shows exactly the same content as my subdirectory. Important: it is not been redirected to it. 2 seperate sites with ...
1
vote
0answers
284 views

Rest api return all users (even without content) to all users

I'm using the REST API to return a list of all users (using Vue) on an Intranet site. I'm using this code to allow the API to return them: add_filter( 'rest_user_query', 'custom_rest_user_query' ); ...
1
vote
0answers
39 views

Column Sorting Code on users.php

I have added some custom code to my functions.php to add column sorting for several of my custom meta fields. I have encountering two issues. 1. For some reason when I add this code all of the data ...
1
vote
0answers
42 views

How can I allow an User to publish only 5 posts per month?

I want to give my users the ability to publish posts. User Role 1: Can Publish 5 Posts per Month User Role 2: Can publish 10 Posts per Month And User Role 3: Can Publish 15 Posts per month It should ...
1
vote
0answers
42 views

Can I check which users ran which updates?

We have a site that was previously updated to 4.8.0. Two of us who normally perform updates did not have the right permissions to run the 4.8.1 update. Using wp-cli wp core update Error: Could not ...
1
vote
0answers
109 views

Extend backend User search to custom user meta

How would I extend the search feature on the backend Users listing to look in custom fields, as well as default user fields? I'm not too interested in a plugin like Relevanssi or anything that would ...
1
vote
0answers
131 views

Change label for registration Fields

I want to change Label of Username and website on add user page and profile page. I also looking for a way to change username label on list users and hide mail column I'm looking for a way by adding ...
1
vote
0answers
109 views

How do I protect user_activation_key?

I was just looking the wp_users table and saw that user_activation_key is unprotected (not salted). What exactly is this column used for and how can I protect it?
1
vote
0answers
49 views

Register user when after filling contact form

Is there any wordpress plugin with the following functionality. Let say that I have a contact form with the following fields: Name, email, file upload, textarea and ect. When the user fill the form ...
1
vote
0answers
138 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 ...
1
vote
0answers
1k 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 ...
1
vote
0answers
300 views

Encountering “Wrong nonce. Action prohibitied.” when trying to alter User Role and unable to Post via WP Admin

The plugin in question that I believe is displaying this message is the User Role Editor, although I do not believe it is causing the issue as users who should have permissions to make posts on the ...
1
vote
0answers
20 views

Profile page for user roles

I want to create front-end profile for specific user role. We have a user role called 'Brand' and I am looking for a way to make its URL like www.example.com/brand/brandname Any idea on how can i ...
1
vote
0answers
31 views

Users create/join groups

I'm looking to create user groups in wp I don't want to use any plugin as it won't be suitable in this case. Would the best approach be to use a custom post and allow users to create a post within ...
1
vote
0answers
225 views

add_cap not working

Need to add a cap for the role editor, to grant them acess to a sub menu, but for some reason its not working. This is the sub-menu: public function submenu_apps_init() { $news_push = new ...