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

learn more… | top users | synonyms (1)

0
votes
0answers
27 views

Deleting anonymous wp_users function not working?

So i am "blessed" with the anonymous users created by the plugin WP e-commerce in wp_users and wp_usermeta (this particular WP setup is highly customized). I am trying the following must use plugin, ...
0
votes
2answers
436 views

Hide Administrators From User List except current user (administrator)

this code works great! the problem is that this code also hide the current user (if administrator) so what i trying to to do is hide all Administrators except current user. i need help to edit sql to ...
5
votes
2answers
515 views

Disallowing Users of a Custom Role from Deleting or Adding Administrators?

(Moderator's note: The original title was "Custom User Role Restrictions") A project I am working on requires me to create two new user roles - one for the owner of the website and the other for ...
0
votes
1answer
22 views

How to restrict author to only access one custom post type ?

My installed Wordpress have 4 custom post type and 1 default post type. Basically what i want is that the author can also access particular one custom post type. Author must not see other post types.
0
votes
2answers
784 views

Delete all subscribers from wp_users and wp_usermeta a few thousand at a time

I have a site with 70K spam subscribers, and I don't need any of them. So I need to delete all subscribers from wp_users and each user's associated meta from wp_usermeta using a query in adminer ...
0
votes
1answer
3k views

Display user registration date

I want to show user registration date like Member since: 15,dec 2012. I have a code <?php echo date("M Y", strtotime(get_userdata(get_current_user_id( ))->user_registered)); ?> but ...
0
votes
1answer
22 views

Add a sub menu page to the Users menu

I added a new link in my WordPress. The url is wp-admin/users.php?page=business&user_id=2 but when I access the page is says You do not have sufficient permissions to access this page. I know that ...
0
votes
0answers
15 views

How to add new tab and data in Wordpress Users section

I have to add new tab and new data in wordpress users. Please see the image below. The points tab came from the plugin mycred but i don't know what was used. What I think was it was done using: ...
7
votes
1answer
335 views

Different back-end language for different users?

I've been searching the internet for the last hour but I can't find anything up-to-date to do this (all the suggestions are about plugins that haven't been updated in ages, see this question). Is ...
0
votes
1answer
2k views

Integrating Facebook Registration (and Login) on a Wordpress page

I would like to use the Facebook Registration tool. I've read the documentation on https://developers.facebook.com/docs/plugins/registration/ I've also gave a look at plugins like Simple Facebook ...
1
vote
4answers
83 views

How to get current user's phone number

I'm trying that : <?php $phone = get_user_meta($current_user->ID,'phone_number',true); echo $phone; ?> But it's not working
0
votes
0answers
28 views

update_user_meta and wp_update_user not working

I have an array of users that I've successfully updated as described here foreach ($users_out as $key_u => $value_u) { $user_id = $value_u['writer_id']; $user_login = $value_u['username']; ...
0
votes
0answers
38 views

Getting invalid user ID error when creating a new user with wp_insert_user

I'm trying to insert users into wordpress from a foreign database and I've prepared my $userdata as foreach ($users_out as $key_u => $value_u) { $user_id = $value_u['writer_id']; ...
0
votes
2answers
28 views

Custom comment field not showing when logged-in

I've added a custom field in comment by using function comment_label($fields){ unset( $fields['url'] ); $fields['rate'] = '<p class="comment_form_rate" id="rate_recipe"> ...
2
votes
1answer
26 views

How to work around “that email address has already been used” error?

The following error may occur if a previous registration remains pending with a conflicting email address. That email address has already been used. Please check your inbox for an activation ...
0
votes
1answer
26 views

How to get all logged in user id in buddypress [closed]

I want to get all buddypress logged in user's ID. for that sake i am using $bp->loggedin_user->id But this is not helping.. Please help me to get all logged in user id. Thanks.
0
votes
0answers
14 views

How to track all users logged into a site?

I'm working on a project that may have two or three content creators. I would like to be able to notify any of them if the other(s) are logged in. This is to prevent one user from editing a post that ...
2
votes
0answers
222 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 ...
1
vote
1answer
15 views

New users not showing up in Post -> Edit

Background: A client has used first and last names as the user names, and we are trying to replace the old users with new users with more secure user names. We need to assign the posts for the old ...
0
votes
0answers
11 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 ...
0
votes
0answers
15 views

Hide categories from authors

Is there a possibility to hide certain categories from specific user roles? This must only affect the backend, especially the create post site. On the frontend these "hidden" categories must not be ...
4
votes
1answer
43 views

Grouping users under parent user

What it needs to be like: one "super user" with user role company normal users with user role employee I don't want "super user" to be able to have more capabilities, especially admin-like ...
1
vote
0answers
12 views

Logins from WP users table use on another page

I'm creating new website and I want use logins from WP table wp_users. I have problem with password encryption. I tried something with PasswordHash(8, True) but it generated string, which doesn't ...
0
votes
1answer
27 views

Change user's display name programmatically

I'd like to change a user's display name using this code snippet in my theme's functions.php file: $user_id = 672; $display_name= 'Les Yeux'; $user_id = wp_update_user( array( 'ID' => $user_id, ...
0
votes
1answer
20 views

Custom Taxonomy user based creation

I need to create a User based Custom Post Custom Taxonomy Term, so in admin and frontend I can relate the Creation/Update & Delete of the term to the current logged in user. Is there a ...
0
votes
1answer
22 views

delete_user_meta Delete one value out of array

The code I have is not working cause the value saved as array and I'm not sure how to fix this. // Remove favorite authors from current users DB function fav_author_remove_user(){ ...
0
votes
1answer
22 views

update_user_meta add value on the top on existing value

I'm working on a plugin that will allow people to favorite authors on WP site. When you click on Favorite this author button, it will send author ID to below function and save that value in DB. ...
0
votes
2answers
551 views

Export Users and their Advanced Custom Fields

I've google it but i am still looking for a solution. Is there a plugin or method to export wordpress users with their advanced custom fields? I don't want to export ACFs structure but users' data.
2
votes
0answers
50 views

Change the author slug from nickname to ID

I've changed the default registering option by allowing people to sign up with their e-mail addresses. They also have an option to add their firstname, lastname but it's not required. // Allow email ...
0
votes
1answer
29 views

User profile in front-end

I want every user to get a profile in the front-end of my website. So I want to visit website.com/user/user-name and view all the information of this user. Is this somehow possible? I would like to ...
1
vote
3answers
4k views

mysql query two database tables, users and usermeta and sort by custom meta int value

I am trying to get an array of site users sorted by a custom meta value (an int). I can query the users just fine and get them back to use in a foreach. I currently have the query results come back ...
0
votes
2answers
48 views

Add an 'edit profile' page with Genesis

Following this post, I tried to add the code in the template of a genesis child theme to edit user's profile (change the password), using genesis actions (genesis_entry_content, genesis_loop,...), ...
0
votes
0answers
123 views

Get first_name on hook user_register

I have created a plugin for saving user info. I have used a action hook user_register, but I don’t get the values of first_name and last_name. What wrong in my code? ...
1
vote
1answer
27 views

Create custom post with custom user rules

I am create a custom user post type testimonial and want to give permission to user to edit and delete there post but its show some error. 1. I created user rule. function ...
0
votes
0answers
47 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 ...
0
votes
3answers
430 views

Manage users custom column add class “num”

I have customized my admin users column to show the purchased leads of a role "lead buyer". The value of the column is a decimal (the number of leads). The "posts" column of the users table has a ...
0
votes
1answer
104 views

Wordpress /users/me endpoint request forbidden

Using Wordpress's plugin WP REST API version 1, there is an endpoint called /users/me which response with data for the currently logged-in user. When I requested /users/me I got 403 Request Forbidden ...
0
votes
2answers
2k views

get_user_meta() doesn't include user email?

I simply wonder why <?php var_dump(get_user_meta(4)); ?> doesn't contain an email address of the user. Instead I have to use get_userdata(4)->user_email; to query the email of the user. ...
0
votes
3answers
36 views

List all users based on array of domains

I would like to display a list of any users whose emails are detected to have email addresses from an array of domains. $domains = array('domain1.com', 'domain2.com', 'domain3.com'); If any users ...
8
votes
1answer
495 views

Override Wordpress user with Oauth2 account

I am trying to setup Wordpress as an OAuth2 client. All of our users are stored in our proprietary CMS which is an OAuth provider. We have very little (to no) users in our Wordpress database, ...
1
vote
1answer
24 views

How does WordPress connect sites and the wp_users table?

I'm not clear how WordPress connects the wp_users table with the various sites under a Multisite. Say I have a site with blog_id = x then I would assume there's a wp_x_users table that contains the ...
0
votes
0answers
19 views

Can you have the users list pre sorted by specific column?

I would like to organise users by date registered every time an admin visits the users page, without having to click again from: http://localhost:8888/wp-admin/users.php I can add the date ...
0
votes
2answers
37 views

How do I change the user via SQL?

I change a user via SQL in wordpress: SET @old_user='old_user'; SET @new_user='new_user'; UPDATE wp_users SET user_login = replace(user_login, @old_user, @new_user); UPDATE wp_users SET ...
7
votes
1answer
2k views

Custom post type for 'staff' versus using wordpress user profiles?

A scenario I keep coming across is where an organisation might have several staff for whom I want to have some sort of listing and a single profile page with biographical information. Typically I ...
1
vote
1answer
33 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
21 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
9 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
19 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
29 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 ...
2
votes
2answers
5k views

Make WooCommerce pages accessible for logged in users only

I have a website using WordPress, and an e-commerce using WooCommerce. I would like my shop (and all its pages) to be seen by logged in users only. Via the User Access Manager plugin, I have denied ...