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

learn more… | top users | synonyms (1)

1
vote
1answer
37 views

How to add edit users capability to a custom role?

Here is the code which I added to give 'edit_users' capability to a custom role. function edit_shop_manager() { // Get custom role $shop_manager = get_role('shop_manager'); ...
0
votes
1answer
24 views

How to allow only two (or more) users access to a plugin

I need to allow two specific users, not groups, to use a certain plugin that is listed in the admin menu area. I have this code which allows one user (user id = 2) to see the plugin : add_menu_page( ...
0
votes
0answers
11 views

Woocommerce Dealer User Role

Woocommerce documentation mentions a "shop manager" role which I do not see in v2.4.10. Does the "dealer" role have same permissions as "shop manager"?
0
votes
1answer
27 views

Store extra user values permanently

I need to store an extra value for users. I have made an extra field on the users page and on the "add new user" page. When adding a new user the extra value is stored using "update_user_meta": ...
0
votes
0answers
31 views

Users set passwords but cannot login

I'm working on a WP-based site that requires creating accounts for users and sending them their password reset links by email so they can activate their accounts. After manually sending out all the ...
0
votes
0answers
20 views

New User Send Password on Mobile - WordPress

How to send new user's password on their mobile at the time of registration in WordPress?
6
votes
4answers
839 views

Ban a user and end their session

I'm working on a plugin derived from this tutorial. So far, the plugin adds a checkbox on a user's profile edit page where admins can ban the user. If checked, the user will receive a message upon ...
0
votes
0answers
20 views

Wordpress logged in users see 180 days every day other content on a particular page

What I want is this: A user logs in for the first time and gets 180 days. In these 180 days , he can visit the information page . On this page the content changes every day in this 180 days. Each day ...
0
votes
0answers
18 views

Assign users to groups that can only see/edit certain pages within the admin?

This may have been answered before, but I'm having trouble getting it to work. I want the ability to assign users to groups (e.g. Bob & Susan are assigned to Group 1). When I'm creating pages, I ...
5
votes
2answers
5k views

How to let user set password on registration

I´m working on a front end registration form adn have gotten as far as getting the standard registration form to work, but... I´d like to add the oportunity to let the user choose his/her own ...
5
votes
2answers
1k views

How can I query all users who registered today?

I'm trying to use meta_query to return all users that have registered today : $args = array( 'meta_query' => array( array( 'key' => 'user_registered', ...
0
votes
1answer
30 views

Wordpress Multisite restict user access

I have a Wordpress Network with 3 sites. I want to know how can I restrict the user access in the subdomains. Actually, members of the principal site can login on the subdomains. Do you know if a ...
0
votes
1answer
56 views

Get usermeta info from sql query

I'm using WooCommerce and need to get my users billing name, billing address, billing phone, billing email, etc from wp_usermeta in a good format like this: name,address,phone,email fake name, 123 ...
0
votes
1answer
47 views

Show number of posts by logged in user

How to display the number of posts written by the logged in user. Here is what i got from the codex so far <?php echo 'Number of posts published by user: ' . count_user_posts( 5 ); ?>
0
votes
0answers
13 views

Import new users

There is another post here which has a solution for importing new users. However, this is no longer valid as registration.php is deprecated. Is there another way for importing users in bulk from a CSV ...
1
vote
2answers
5k views

Hide one admin from another admin

How can I hide one admin from another in the users list? I want to give admin permission to another person without giving him the ability to see/edit my details.
0
votes
1answer
39 views

Users Ultra: Hide asterisk for required registration fields?

All of the fields in my Users Ultra registration form are required. It makes no sense to place an asterisk on all of them. Is there a way to remove the asterisks?
5
votes
1answer
101 views

Network not displaying all sites and users

We have more than 10,000 users and blogs on our wordpress network. There are 2 problems: admin blogs listing wp-admin/network/sites.php only displays 1 page, no pagination, not displaying all blogs ...
0
votes
0answers
20 views

How to display and edit “Your comment is awaiting moderation.” comment message for logged in users

I want ALL users regardless of their logged in status, except admin, to have their moderated comment status displayed on the front end as per non logged in users. If I could edit the wording of the ...
0
votes
1answer
97 views

Updating user meta

I'm struggling to figure out to get the code to update a single current user meta. For instance if I want to update their first name automatically. I'm using $current_user = wp_get_current_user(); ...
0
votes
0answers
14 views

Globally Change Name of User Profile Fields

I am trying to globally change the name of user profile fields or add new fields to the users' profile (whichever is easier and takes less resources). I tried using something like: add_filter( ...
0
votes
0answers
132 views

Cannot login in Wordpress even after changing hash password in phpmyadmin

An hour ago I changed the password of my Head Admin user. But after this I was not able to login anymore. So I have tried to reset the password in PHPmyadmin with the md5 encoding and even with this ...
0
votes
1answer
81 views

How can I sort get_users() by any value (last_name, user defined fields and more)

I want to sort the result of get_users() by last name, first name, user defined fields or whatever. How can I achieve this while still using get_users()?
0
votes
1answer
46 views

Update only some custom user fields

I have created multiple user fields. These fields are only managed by the administrator to add additional information about the user Now the rules have changed. The users must gain access to their ...
0
votes
2answers
39 views

Overflow Video for No Login Users

Try to figure out a way to pop up a Video for no login users in Home Page via functions. I am using a Genesis theme. Any Suggestions?
1
vote
0answers
78 views

Custom User meta field display

I'm using PODS plugin (https://wordpress.org/plugins/pods/) to extend main types in wp and WP Tiles for tiles rendering (https://wordpress.org/plugins/wp-tiles/). I'v already added field position to ...
5
votes
2answers
715 views

Allow up to 5 Concurrent Login Sessions

I'm having trouble implementing a concurrent login check. The site needs to prevent more than 5 concurrent sessions for any particular user at one time. Example: User Matt can have 5 active ...
0
votes
0answers
14 views

Show page to group of users

I have WordPress user group and want to show them a specific page from the admin dashboard. I don't find enough information in google. How can i do it?
0
votes
3answers
54 views

I want to change my user name

Is it possible to change my user name? It was only after choosing it that I realised I had misspelled it.
0
votes
0answers
23 views

WPMU: Sign-Up Page on each site with automatic sign-up?

I wonder how todo the following and if someone could help me with a solution for it: I have a multisite setup, where I want on each site to have their own sign-up page (e.g regular signup-template ...
0
votes
0answers
58 views

Allow users to embed video URL from internet

I'm admin of my site and want to allow anyone to post a video URL from youtube, vimeo, videogram etc. on my site. When I post myself the video URL on the admin site I simply add the URL there, and the ...
4
votes
3answers
859 views

Set a maximum upload count for users on a specific user role

For users with the Contributor user role, I want to restrict the total amount of images that they are allowed to upload. I found this code posted on an answer here: add_filter( 'wp_handle_upload', ...
0
votes
0answers
104 views

Updated to WP 4.3.1 and now it won't let me publish or update user info

WordPress updated to 4.3.1 and now I can't publish. Every time I hit the publish button, the screen just takes me to the "posts" page in the dashboard? Also, if I try and manually add a new user, and ...
2
votes
4answers
2k views

Add extra field when admin create user

I have created extra field that user can edit on their 'Your Profile' page. The extra field also available on WordPress register page. What I want to ask is, how to add the field to User > Add new ...
1
vote
2answers
70 views

Cannot set user passwords

In the admin panel, if I go to "Users -> Your Profile" I don't have the inputs to set the password. I can only generate it, but I want to set it by hand. Is that some kind of bug, or was this ...
0
votes
0answers
90 views

List users in a dropdown for login

I have a loginscript that works. Now I want to expand the login functions with a dropdown filled with all users. This is the login: <div class="login-form"> <?php $login = ...
0
votes
1answer
383 views

Remove email verification when new user register

Please note I'm not posting this question without doing google search, but the problem is every single result I found is either about BuddyPress or WP Multisite, but I have a WP Single installation ...
0
votes
1answer
19 views

post acces for guests / unregistered users only

is there a way to restrict complete posts/pages to be viewed by guest (unregistered) users only, hide them from subscribers/logged in users? These posts shouldn't show up in category archive pages for ...
0
votes
1answer
35 views

Hash user emails in database?

I have a wordpress based website, a very important thing is that no one should get to know the email addresses of the people who will admin. I will make the whole website private but I am still ...
1
vote
1answer
44 views

get_users() timeout on big userbase — options to divide query?

We run a daily cron that gets all the users' data and updates their values. The problem is that get_users() is timing out because of the big userbase. Yes, I can update the php.ini file and increase ...
1
vote
0answers
97 views

How to add custom query filters in WP_User_Query

I am creating a list of all users in wordpress. For that I am using WP_User_Query with meta_query so that I can show only filtered users. I am stuck where I want to add a custom query filters in ...
0
votes
0answers
29 views

Add user profile fields during registration

I want to add fields to the registration form. I know how to add fields to the profile after the user is created, but I would like to do this one step before that. I need an ID for that so the user ...
0
votes
1answer
32 views

Unique password to access a section site

I am working on a wordpress site. I am selling a digital course on it. Users interested in the course will pay locally via bank and send me payment details. So after I confirm their payment I will ...
3
votes
1answer
710 views

Copy a user from one WordPress site to another

Is it possible to copy a user from one WordPress site to another? I copied the record from the user table and all the related records from the usermeta table (12 records by default) but I think ...
0
votes
1answer
468 views

call wp_insert_user in custom class doesnt work

im creating a custom class to manage users in wordpress and chamilo but this is not the point. Class looks like this: class Platform { private $security_key = '..'; private $secret_key; ...
0
votes
0answers
107 views

Get most active users sort by comment count

how can I display a list of the most active users (with permalink and thumb) sort by comments count? I found this on WP Codex that list all the users, but I don't know how to sort by comment count. ...
0
votes
1answer
11 views

Add method for tracking who referred new users

A client wants me to make somthing like user genealogy. It would work as follows: each user has a page that only they can access (or one page that loads from logged-in user) and on this page they ...
0
votes
0answers
47 views

how to sync user database with excel sheet

guys! I'm currently building a website for a ONG and I've been asked to create a private page where the user's could see the points they have gathered with our organization and that can latter be ...
0
votes
1answer
32 views

Allow viewing the edit screen for a post type, but not make/save/publish/update changes

I have been searching the documentation on how to do this. There is a user type manager who should be able to see the edit page of a custom post type called employees. The manager should be able to ...
0
votes
1answer
297 views

wp-admin: Sort users by surname

Is it possible to alter this table in the backend so I can sort users by Name and Surname? I have dozens of users on my multisite that need to be sorted by Surname. Can anyone help me out here? ...