Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [users]

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

1
vote
1answer
744 views

How to Access wp_usermeta Data Immediately After a New User is Created

I am trying to find a WordPress action hook that will allow me to access a new user's wp_usermeta information, immediately after the user has been created. In our registration process, custom fields ...
7
votes
2answers
209 views

Use author author display name in permalink structure for pages and posts

I need to add the author name as a subdirectory prefix for all user's posts and pages. For example: example.com/johndoe/ //The author page for John Doe example.com/johndoe/category/test-post/ //Test ...
0
votes
1answer
14 views

create new users in db starting at what ID?

I have to create several hundred users using mysql. How do I know which user IDs to give them? I don't want to duplicate already-in-use IDs, so is there a way to check which IDs are safe to use for ...
0
votes
1answer
547 views

Get current user array with post string

I need to get 10 current user fields and pass the field values to a post string. The post string is expecting certain label names for each value. Example - post string expects 'firstname' => '...
0
votes
1answer
9 views

How to get all multi-select user meta values and add them to an array?

I am trying to grab meta_values from a user profile's multi-select field, and convert them to usernames, which I will then input into an array. Let's say that the user has selected two options (out of ...
0
votes
3answers
21 views

Return all users that have one or more published blog posts

I am working on a plugin for which I need to create an array of all users (name and ID) that have one or more publish blog posts. Looking at the documentation for get_users() it does not seem to ...
1
vote
1answer
21 views

RSS feed for a given user's post?

I know how to get the site's RSS feed - that get_bloginfo('rss2_url') but is there a way to get the same thing but only for a given user? Effectively the RSS feed of the posts listed on the author's ...
0
votes
0answers
6 views

How to change post_author when making a user as admin programmatically

When making a new USER in the backend singed in as admin, wp_posts signed assigns the post_author of that of admin, I need it to be changed so I can have search results reflect that of the actual user....
5
votes
1answer
635 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 ...
-1
votes
2answers
25 views

Ajax Request for both logged and non logged users

As my understanding, The wp_ajax_{action} hook only fires for logged in users. For logged-out users, wp_ajax_nopriv_{action}action is triggered on an ajax request. So, how can I write for both logged ...
0
votes
0answers
10 views

WP not sending “A New User Registered” emails to admin

I have a WP website and as an admin I do not receive emails when new users register. I am using WP Mail SMTP and I receive all other emails, just not the "A New User Registered" emails. Any ideas? ...
0
votes
2answers
3k views

Is there any way to access Ultimate Member's custom fields?

Ultimate User allows you to create custom fields in the register page. I have added address and phone. Where do they go? You cannot edit or even find them in the back end user interface. I added ...
0
votes
3answers
36 views

Multisite - maximum number of users with specific role

Is there any plugin or script where i can use to define maximum number of users with a specific role on subsite in a multisite network? I'm offering cloud helpdesk wordpress and pricing is based on ...
0
votes
2answers
15 views

User roles not displaying

Can anyone explain why I cannot see the role from the code below: $userID = get_current_user_id(); $user = get_userdata(userID); <?php echo $user->roles; ?> but I can see all the other user ...
0
votes
1answer
993 views

admin ajax is not working for non logged in users

I know that this issue has been discussed many times, but I think I tried most of the advises. This is my code: $.post('<?php echo admin_url( 'admin-ajax.php' ) ?>', {'action': '...
0
votes
0answers
11 views

Linking WordPress User Profiles Together With Shortcodes

I am using Ultimate Member, and have franchise owners as one user role and shops as a different role. On the franchise owner profile, I have included a shortcode (that I need help with) to display the ...
0
votes
2answers
632 views

Move users and passwords from one wordpress site to another

I need to copy over Wordpress users with roles/passwords intact to a new install. I'd prefer not to copy the entire site (though if I have to I will.) Currently I only have the one main admin account ...
0
votes
1answer
639 views

Updating custom user meta

I have created a new custom meta for my wordpress users. These are just 2 radio buttons (either 'Yes' or 'No'). I have created a button on the front end and want it so that if the button is clicked, ...
0
votes
1answer
616 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
18 views

How do I track which user clicked my button?

On a business listing in a directory I have a button which will lead to a custom plugin. The custom plugin needs to know the userid of the user (registered user) who clicked the button to get here, ...
0
votes
0answers
7 views

Export WP users to SSO sevice provid

I am building another website (not WP) that will be accessible to some users only. Rather than asking for a new registration / login, I would like to allow my WP users to be able to connect to their ...
2
votes
2answers
3k views

Find out when a user was created and display varied content depending on time since creation

I am looking to display different content after a user registers. Is there a way to find out the registration date and then if it's been 1 day display one thing, but if it's been 2 days display ...
0
votes
1answer
9 views

How can change user_login per user_nicename

I really aprecciated our help How can I replace the content of "user_login" field with the same content of "user_nicename" in table wp_users? All user_login currently appear as "admin" How would ...
-1
votes
0answers
13 views

How may I add prefix on Woocommerce user ID?

Is it possible to add some sort of prefix, so that Woocommerce users get the ID on registration like 00001,
5
votes
1answer
799 views

Give to site admin the option to “skip confirmation email” when adding new user

in wordpress multisite when we give to site admin the option to add new users, site admin dont have the "checkbox" to add the new user without sending the user email with link activation (see the ...
0
votes
1answer
21 views

Update a user profile via frontend

I'm very new to WordPress so I have a simple beginner question. I've added some custom user fields on the admin form with the action show_user_profile, edit_user_profile, personal_options_update, and ...
1
vote
2answers
84 views

Creating user in Firebase after Wordpress user registration

I have developed an App that uses Firebase. The user has to go through a Wordpress website and buy a subscription before being able to access the App. When a new Wordpress user registers, I would ...
0
votes
1answer
627 views

How to add custom detail page for a Subscriber at Admin Panel

I have created a custom page which shows the list of Users(Role = 'Subscriber'). I named this page "Reporting" & It is based on wp_list_table. Now I want to show the user details (having custom ...
0
votes
3answers
48 views

Redirect after login based on user role (custom login page)

I created a custom login page and everything is OK but there is an issue. I want to redirect users to different pages based on their roles after login. My code is below but I do not know why it is not ...
1
vote
1answer
2k views

How to add custom fields to my custom registration form

I´m trying to add first name, last name, and company name to my custom registration page. The registration form almost works, but there is a problem. So far I´ve got the following code, but I can't ...
0
votes
1answer
31 views

Add custom user meta data

I want to add a custom meta data for all the users with a default false value. I have researched about adding a meta data i.e, add_user_meta( int $user_id, string $meta_key, mixed $meta_value, bool $...
0
votes
1answer
34 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 ...
0
votes
1answer
727 views

How to delete user from MU site when the user is removed from their site?

When an Administrator for a sub site removes a user from their sub site, I am trying to not only remove the user, but also completely delete them from the entire MU site. I have tried this: ...
0
votes
2answers
805 views

User email verification without a plugin, is it possible?

I have found a really great tutorial about creating a plugin that verifies email for new users: Email verification for new users Is there any possibility to do this directly with core editing and ...
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
1answer
630 views

How to customize wp_signon()

I am trying to get a customized sign on process. The features that are absent in WordPress by default are the following: Allow user to choose a password at the time of registration. Allow user to ...
1
vote
2answers
748 views

Want to Add Custom Fields for Uploading video to WordPress Users from front end

I am trying to an add upload media option for the user profile.Which i was achieved with the help of This Link By adding the code given in the above link on my theme's functions.php i am able to see ...
1
vote
1answer
808 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 ...
90
votes
3answers
194k views

If the current user is an administrator or editor

How can I check to see if the current logged-in user is an administrator or an editor? I know how to do each individually: <?php if(current_user_can('editor')) { ?> <!-- Stuff here for ...
0
votes
1answer
797 views

Save search criteria per user and show on custom user page

I have a property website with a custom search form for minimum and maximum square feet. A registered user executes a search with a min(i.e. 150 sqft) and max(i.e. 300 sqft) select option value. I ...
-1
votes
1answer
24 views

how to show logged in members username in wordpress content

I'm working on a page on a site but got stuck at this point I want to show the logged in members username/first name of the site content for that I'm using this code <?php if ( is_user_logged_in()...
1
vote
2answers
2k views

Add a custom column in users list page

I need to hook to the users list page. I Need to add a checkbox column for each user to remember if they have paid or not. Thanks for help because can’t find snippet to hook to this admin page.
0
votes
0answers
17 views

WordPress and Azure Directory

We have a WordPress website that is synced with our Azure company directory. This allows users to access this WordPress website with their Email and password SSO (single sign on). Instead of users ...
2
votes
3answers
13k views

Display edit link if post author is current user

I am creating an author.php page and listing all the posts from an author. Although admins can see the posts' edit links i want to echo the link if logged in user is the current user for example if ...
2
votes
3answers
1k 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 ...
-1
votes
1answer
16 views

Limit user access to installing/configuring a plugin?

I'm hiring a freelancer to install a plugin for me and setup a few of the plugin's more complicated settings. I don't know him personally and would like to limit his access, as there is sensitive ...
0
votes
1answer
20 views

Iterating users while user iteration is suppressed

Recently I noticed various login attempts being blocked by security plug-in this is pretty much ordinary when the attempt is about non-existent users or default/common user names like the website name,...
0
votes
2answers
1k views

User list order by user meta

i have created user vote that can vote users or author of posts. so for example have 4 users which looks: user --- ID=1 --- META KEY='_thumbs_rating_up' --- META VALUE='13' user --- ID=2 --- META KEY=...
-1
votes
1answer
38 views

Forbid certain users to access a specific page

I want to build a blog where every user is allowed to post something (only text) after a successful registration. However, a user should only access other contributions from users who have uploaded at ...
0
votes
1answer
10 views

members only products

i'm looking to setup a website and would like to know if the Wordpress platform can accomodate these requirements. I need a members only area and I need the ability to sell certain products ONLY to ...