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

learn more… | top users | synonyms (1)

0
votes
1answer
4 views

Require confirmation of current user's email before updating database and before send_email_change_email

I like the core ability for users to update their default "Email" field. For example username1 can edit their own profile and change their "Email" field from email1@example.com to email2@example.com ...
0
votes
1answer
26 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 ...
6
votes
1answer
74 views

Problem with Hebrew characters in username

I wrote a plugin to enable hebrew characters in usernames. This is the full code: add_filter ('sanitize_user', 'hu_sanitize_user', 10, 3); //Overrides the Wordpress sanitize_user filter to allow ...
0
votes
0answers
5 views

How can I give a user the right to edit pages, which however need to be approved first?

I'm trying to give a user the right to edit pages. However the standard "editor" role in Wordpress give the user the right to publish such changes immediately. Is it possible to let someone edit pages,...
1
vote
1answer
29 views

UPDATE on SELECT results. A SQL query to swap Author with Meta Box value

I inherited a project where, for some reason, the previous developer make a custom post type for authors and a custom select listing all those authors cpt titles in the post edit screen. This led to a ...
-2
votes
0answers
12 views

Woocommerce user first order minimum quantity [on hold]

How to limit a product minimum quantity only for specific user role on his first order e.g if a subscriber wants to buy a product for the first time he must buy atleast 3 product it is only for first ...
0
votes
2answers
613 views

How to add follow functionality to multi-author wordpress site?

is there any way to add "follow" functionality to Wordpress ? so that every logged-in user can follow his favorite author and only can see post from authors that he followed them .. A possible ...
0
votes
1answer
18 views

Shared account / dual blogging in WordPress

I am running my own hosting and domain, with Wordpress installed on it. I am planning on posting there regularly, once or twice a day. However, a friend of mine would also like to contribute with his ...
0
votes
1answer
2k views

How to let users choose posts order in categories?

I'm running a wordpress based website and I need to let the users choose how to show the posts inside categories pages. I would like to have a button inside a category page that can be clicked so the ...
3
votes
1answer
55 views

Hide a user from WordPress

I'm using the below code to hide a user from the WordPress User List: add_action( 'pre_user_query', 'ap_pre_user_query' ); function ap_pre_user_query( $user_search ) { $user = wp_get_current_user(...
0
votes
0answers
22 views

Filter User Query

I am using the code below to display all of my users on the front end. <?php $args = array( 'meta_key' => 'last_name', 'orderby' => 'meta_value', 'order' => 'ASC', '...
0
votes
1answer
69 views

The post order is different for logged-in and non-logged-in users? [closed]

I noticed that for some reason on my site, the post order changes depending on whether a user is logged in or not. When I am logged in as the admin, the posts display is chronological order. But when ...
1
vote
1answer
425 views

How to delete user on logout and when session expires?

I am looking for a way to delete a user when they logout and when session expires...whatever one happens first? Reason being is that all login authentication happens through an api to another company ...
1
vote
1answer
64 views

Custom taxonomy on users with UI

WP lets us register_taxonomy() with users as the object type, thus creating taxonomies mapped to user IDs rather than post IDs. Unfortunately this method is poorly documented and many features don't ...
0
votes
0answers
17 views

Site admin that can see everything, but not save

Maybe it's strange question, but I'm interested in it; Is there any way to allow user display everything, that Admin can see (site options, custom types, plugins settings) but disallow to edit ...
-3
votes
0answers
23 views

how to send email automatically to those who did not login to website

I want to send an email for inviting up users back to my website who didnt login to site and check out latest posts can anyone tell me how i could do this ? i dont know to program so much but let me ...
-3
votes
1answer
19 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 ...
0
votes
1answer
24 views

How do i auto approve new user?

I am developing a social networking site on buddypress. and when a new user registers on my website, he gets an activation link in the email, and i have to manually activate his account from admin ...
0
votes
1answer
428 views

How to list users like an archive page 10 users on page and have navigations

How can i list registered users like an archive page? and how can i make a link on user name to point to user profile page? Please see the link http://postimg.org/image/9wkp6kfib/ <?php /* ...
0
votes
0answers
13 views

Button Action on WordPress Users Admin Page

I want when I select the role and click button filter. button filter action like when I click menu above ( example: subscriber ) and the page display subcriber only. My Code function ...
0
votes
1answer
18 views

How to use a transient inside WP_User_Query

Source: How to check if a user (not current user) is logged in? I'm using a transient that's created when users login. $logged_in_users = get_transient('users_online'); Now i'd like to create an ...
0
votes
0answers
18 views

Max no of simultaneous active sessions for a single user

Is there any limitation to log in with multiple devices simultaneously using a single subscriber (user) account ?
-3
votes
1answer
20 views

how can i inform other users about new user registration? [closed]

I try to inform other users about new user registration in wordpress but I did not succeed. please help me I use ultimate member and user pro plugin.
3
votes
1answer
58 views

Limit content by user registration date

I am looking for a code that will allow me to restrict access to content based on a User Registration Date. Therefore, if a user registers after content has already been posted then the user will not ...
1
vote
2answers
657 views

Exclude subscriber users from user list

I want to exclude Subscribers from a user list. My code is: $users = $wpdb->get_results( "SELECT display_name FROM $wpdb->users ORDER BY display_name ASC" ); How can I change that so ...
0
votes
1answer
1k views

Plugin permissions for Editor role

I've added a plugin called Orbisius Simple Notice but I notice this applied to several plugins I have installed. The plugin works fine when logged in as an Admin. However, my clients who manage the ...
0
votes
1answer
521 views

WP_User_Query with more than two custom meta values

I am trying to create a custom user query based on users' metadata. I have the following query created. $users = new WP_User_Query( array( 'search' => '*' . $search_name . '*', '...
0
votes
2answers
3k views

What is the proper way to get logged in user id in a plugin?

I need to get logged in user id inside my plugin. Is this the proper way? $root = dirname(dirname(dirname(dirname(__FILE__)))); if (file_exists($root.'/wp-load.php')) { require_once($root.'/wp-load....
2
votes
4answers
5k views

get_current_user_id() returns 0?

I'm trying to get the currently login user's id in WordPress. I've used the following code: function users_list() { global $current_user; $current_user = wp_get_current_user(); echo 'User ...
3
votes
3answers
43 views

Custom user avatar in the Wordpress users listing

By default, Wordpress uses Gravatar for user avatars. I've created a custom field for avatar uploads, and I'm using this as users' avatars on various pages in the theme. In the admin - on the all ...
0
votes
0answers
41 views

How to bulk change user role to “No role for this site”

If I edit an individual user, the role dropdown menu has the option "— No role for this site —" (<option value="">— No role for this site —</option>): However this option doesn't exist ...
1
vote
1answer
694 views

Display custom fields in frontside user profile

I installed the CIMY User Extra Fields plugin to add new custom fields in theuser profile. I added 1 custom field for gender to the user profile but it displays only in the admin panel user profile. ...
0
votes
1answer
485 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
33 views

Link users to a custom post type

I would like to link a user to a custom post type (college). Does anyone know a good way to do this? The ultimate goal is to display links to view and edit their college I've been using Advanced ...
0
votes
1answer
60 views

How redirect after registration?

I have 2 different pages one is for employee and other one is for employer , After signup I need to redirect page based on user role:- If user role is employee redirected to employee page OR ...
1
vote
1answer
22 views

UberMenu list current user's posts as menu items

I'm attempting to turn users' posts into menu items, without luck. Here's what I have so far, but not working. I would like to use the Advanced custom content by adding a shortcode. add_shortcode( '...
0
votes
2answers
476 views

New User Registration email

I am receiving an email notification whenever a new user is added to my site. I need to change the default 'send-to' address. It is using a personal email, rather than my 'webmaster' email. Where is ...
5
votes
1answer
523 views

How to allow an user role to create a new user under a role which lower than his level only?

I have three extra roles in my site. Doctor Receptionist Guest those roles are added by following code: * adding Doctor role */ $doctor_role = add_role('Doctor', __('Doctor'), array('read'=>'...
1
vote
1answer
133 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 ...
1
vote
1answer
27 views

User Last Login Sort Column

I've seen there are several ways to display a user's last login date on the Users page without having to use a 3rd party plugin. Building on that, I'd really like to have the user's last login date ...
2
votes
1answer
1k views

How to remove “Super Admin” from All Users for those that are not a “Super Admin”?

I would like to remove the filter at the top that says "Super Admin" for users that are not a "Super Admin". How do I go about doing this? This screenshot shows what I am talking about:
0
votes
1answer
14 views

Regenerate user_nicename column

I'm struggling with a database issue. I took control over a solution created by someone else. When inserting / updating users in the database, the earlier developers wrote a custom database script to ...
1
vote
1answer
19 views

Customizing user data

For a school, I'd like to add custom fields to users, such as department, curriculum, date & place of birth, education, phone number, social links.... How can I accomplish this? I see there are ...
4
votes
2answers
35 views

'username_exists' still returns an ID even after deleting record from the database?

Is there some kind of MySQL query cache turned on by default or something? I am trying to work on a user import script and I am seeing some strange results from the username_existsfunction after I ...
3
votes
5answers
2k views

Wordpress auto login after registration not working

So I looked up a bunch of threads trying to figure out how to automatically log a user in after registration, and came up with this. function log_me_the_f_in( $user_id ) { $user = get_user_by('id'...
25
votes
4answers
12k views

Getting a List of Currently Available Roles on a WordPress Site?

When writing WordPress plugins there is often a need to set up options for which roles on the site have access to certain functionality or content. To do this a plugin dev needs to fetch the list of ...
0
votes
0answers
36 views

Block user redirection to wp-login.php on leaving password blank in frontend login

When a user leaves the Username / Password / Both Blank and clicks login in frontend buddypress login, he is being redirected to wordpress admin login url stating wrong username/password/empty ...
2
votes
0answers
35 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 ...
0
votes
1answer
12 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 ...
1
vote
1answer
20 views

*wpupdateuser* user_login in my WordPress database

Recently, I've started to notice a wpupdateuser user_login in my WordPress databases. Is this correct, or a compromise?