Questions tagged [users]
Refers to accounts with the ability to login and participate in a WordPress site.
2,074
questions
0
votes
1
answer
23
views
Group users by meta field, with name of meta field as group title
I'm creating a employee photo directory based off users from my site. I'm trying to add front end filtering for this query and I have it mostly working.
What I'm trying to accomplish is to sort the ...
0
votes
0
answers
16
views
Search results not finding in paginated pages just in visible rows
I created this plugin to display a list of registered users with the Faciliator role. Displays the list in a table with name, country and avatar as titles. It works fine but the search box only ...
0
votes
1
answer
14
views
Only registered users can see part of the contents of single.php
On my wordpress blog, I want a part of single.php to be visible only to registered users.
For example:
/code/<?php the_title(); ?>/code/
Is there a function that works on a php basis?
What ...
0
votes
0
answers
12
views
change Dashboard default page on login
I found almost the same question here - Remove dashboard, use Pages tab as default
and I tried to implement it for my own needs and couldn't get it to work.
I am doing a hotel site and I am making a ...
0
votes
0
answers
6
views
custom user profiles like linktree fully customizable on the front end
hey so im creating a website for a client that wants random people to be able to register on the website and when they register a profile page to be created for them with custom design (that the ...
0
votes
0
answers
11
views
Add custom css to specific user
I need help with something for my wordpress site. I want to add custom css to a specific user. For example, user B. but I couldn't do it.
Here I tried the following css code:
div [user="id"] ...
0
votes
0
answers
10
views
Disable themes.php except for network admin username
How to remove and disable the admin menu item:
Appearance > Themes for regular admin.
Only allowing Appearance > Themes:
If you are logged in as multisite admin.
The regular admin can not change ...
0
votes
1
answer
29
views
Add Additional Column in "Users" Dashboard Area - BP Extended Profiles (WordPress)
I have a site with extended profile fields. I can't find the particular way of adding an additional column as:
Username | Name | Email | Site Role | Discord (this is the additional column)
The ...
0
votes
1
answer
13
views
Buddypress: "Auto load" specific usermeta in WP?
I have a Buddypress membership page, and for specific customizations I need a few usermeta fields being loaded all the time, for the currently logged user as well as (in case any) the displayed user-...
0
votes
0
answers
19
views
a lot of customization of front and back end and after if there are a lot of users, will slow down the server? if so, what do you recommend?
I am currently building a platform on WordPress and am concerned about whether it will slow down when the number of users increases to over 1000 or when I add custom features. However, it might not be ...
0
votes
1
answer
33
views
(How) does WordPress protect direct access of user data?
I am setting up a WordPress with a user system.
User information (names, profile picture) of all users should be private, and only accessable when logged in.
The "Ultimate Member" plugin ...
0
votes
1
answer
70
views
Users as team members through a loop in elementor
I am trying to create a loop in Elementor's theme builder that will display each user with the role of the Contributor or Author. I.E. When the admin of the website will add a new user with the above ...
0
votes
1
answer
32
views
Allow Html pages for users with specific roles
On my website there is, beside my WordPress installation, a folder full of html files.
I need to protect them using the WordPress user authentication system. The policy is simple: if you have a role, ...
0
votes
0
answers
30
views
sort by date in users
add a column with date, I bring the date with a shortcode from a plugin, I have the problem when trying to order it.
how could i do
function fc_new_modify_user_table( $column ) {
$column['vencimiento']...
0
votes
2
answers
24
views
Can we get user profile page using user_id in the URL?
The current default profile page is like example.com/user/johndoe. But can I access the page via example.com/user/?user_id=21 where 21 is johndoe's user_id.
0
votes
0
answers
13
views
Issues with creating user profile for a subscriber, but with different profile page and functionalities
I am building a website where two types of subscribes have to register and get access to a profile page:
Volunteer
Person in need
I attempted to do so, but the person in need user profile still ...
0
votes
2
answers
210
views
AJAX call not initializing for non-admins in WordPress
I developed my ajax functionality while using a WordPress admin account and everything worked correctly. Testing as a user, however, I cannot get the functionality to call - and pressing the "...
0
votes
0
answers
10
views
Export user data from Squirrly’s Starbox plugin?
I'm using the Starbox author box plugin and have been since I started adding authors as users. I now have around 800 users. When I deactivated Starbox to use a different plugin, all of the user ...
0
votes
0
answers
30
views
Custom Admin Menu Report for Specific User ID
I've been thinking for generating a custom revenue report for each user ID with an 'author' role monthly, which would be displayed on the backend.
All my online users must be able to view their own ...
0
votes
1
answer
74
views
Wordpress: New user role which is ONLY allowed to manage media
I would like to have a new user role (or restrict a role which is already available from Wordpress) which can only manage media (upload, delete pictures etc.) in the wordpress backend - every other ...
0
votes
1
answer
146
views
Sorting Users page admin column with ACF field
I have a CPT called Companies. I created an ACF relationship field called user_company that gets displayed in the Users profile page.
When a user registers, I have to go in and assign them to a ...
0
votes
1
answer
29
views
Change a subsite Admin role of a WordPress Multisite after 24 hours registering
please I am trying to change WordPress multisite users' role after registration. So a new user can register and create a subsite and after 24 hours the users' role changes to the subscriber role. The ...
0
votes
0
answers
111
views
Unable to retrieve Users (Not logged in) through WP Rest API
We are able to retrieve Rest API results of our WP database, running a Learndash plugin.
We can retrieve details while not logged into the WP site, although limited (10 records or so).
While logged in ...
0
votes
1
answer
67
views
How to add custom user role into wordpress
I added this code snippet to my function.php to create a user but after logging with this role I'm unable to edit the learndash course lessons quizzes...
add_role( 'learndash_content_manager', '...
0
votes
0
answers
184
views
Can't retrieve user email address with REST API
I would like to retrieve the email address of an user by id with the REST api from Python. The problem is I don't get the email in the JSON from the two calls I added below. Based on the docs it ...
0
votes
0
answers
23
views
Searching for a custom meta from user.php in the admin
I am trying to extend the standard user search to 1 specific custom usermeta.
I am following the great answer provided in this question.
I am still not able to get any result when I search for this ...
0
votes
1
answer
33
views
How to handle Wordpress account for terminated employee
An employee was terminated and I want to know the best way to handle this individual's Wordpress/Woocommerce account. He was in the Shop Manager role and he mostly worked doing order fulfillment. I ...
0
votes
1
answer
21
views
Some data of one custom user profile is erased when I update another custom user profile
I have some problems with custom user profil. I Created 2 différents user profiles :
one is calld "particulier"
the other is called "entreprise"
You can see the code below.
The ...
1
vote
0
answers
41
views
How to create a User Role and give permission to only use Web Stories plugin?
I want to create a new user role "Story Maker" with only the "Google Web Stories" plugin shown in the dashboard for the user to create and publish stories.
I don't want the user to ...
0
votes
1
answer
34
views
How to authenticate/verify login credentials & check for user meta without logging in?
I have custom login form and i used wp_signon() to authenticate. However, i wanted to run an additional check for usermeta and if the user has account_status === pending, throw an error or or prevent ...
0
votes
0
answers
197
views
Remove My Account Menu items in Woocommerce based on user roles
I need to be able to unset or disable certain Myaccount menu items in Woocommerce Dashboard based on user role. So for example show "orders" menu for customers (role) and not show menu &...
0
votes
1
answer
20
views
Can I provide a user's user_ID to them and can it also be searchable in a member's directory
We would like a user (student) to have a student ID that they can quote and this stays with them as they learn with us.
When they create a profile, by registering on our site is it possible to provide ...
0
votes
0
answers
25
views
Multisite Login Access Restrictions
I am building a multisite where users can sign up to create a subsite about there business. I would like to have them be able to login to the backend and edit there subsite but restrict them from ...
0
votes
1
answer
177
views
WordPress password as plain text in email
I am working on a project and we need to send users current passwords when they log in.
So the only option is to the use the password reset feature when the user enters the email, an email will be ...
0
votes
1
answer
46
views
Recognize logged WP user in existing REST API
I have a plugin using pre_get_post filter to hide posts depending on which user is logged. However the "parent page" selector in the WP "edit post" page uses a wp-json call to get ...
0
votes
1
answer
53
views
Set a minimal number for next user_id
I have a WordPress website with 111 users, I have to import +45000 users who had a predefined user_id starting from 31800001 to 32200905.
I know that I can import and set their user_id to their, ...
0
votes
2
answers
78
views
User Query Multiple Orderby Clause
I'm having trouble getting consistent results from a WP_User_Query when ordering by multiple meta values.
There is a meta field that contains a serialized list of IDs, and I need to display users with ...
0
votes
0
answers
6
views
Website for online video conferences with students and teachers with WordPress?
Building a website to organise, that is, communicating paid video conferences between individual students (have paid) and individual teachers (being paid). Both should have accounts. Including payment....
-4
votes
1
answer
240
views
Undefined Function Fatal Error with Shortcode [closed]
I asked AI ChatGPT:
Can you develop a wordpress shortcode to create a list of users of a certain role and for each one show if they commented on a certain post (counting how many comments they left)? ...
0
votes
1
answer
46
views
Send email to user if their role is changed to Author
I would like an email to be sent to the user when their role is changed to Author.
The code below sends an email when a user's role is changed to any role, but I would like it only to send if the role ...
0
votes
1
answer
88
views
MySQL query to list users who never signed in
What MySQL query can I use to get a list of users who have never logged in to WP?
Some background...
My WordPress website has been running since 2015 and initially, I had a newsletter form that would ...
0
votes
0
answers
24
views
Automatically select category based on user role
I have a website where I want all our 'Author' user types to submit their posts to one specific category, however the website has a total of 4 categories.
Is there a way to automatically 'check' a ...
0
votes
1
answer
22
views
Want to add Number of Products added by each shop manager in users list
Actually I want to count how many products have added by each shop manager
So thats why I Want to add Number of produts column here
Can anyone Help me in it???
0
votes
0
answers
12
views
how to embed a crop feature for cropping images uploaded by the user
I'm creating a newspaper website and want my user to crop the already existing image and download cropped images from the website.
please Suggest me a plugin or javascript code for this. It would be a ...
0
votes
1
answer
59
views
Filter and manipulate the get_current_user() function
What i need: To perform my own logic every time get_current_user is being called
Is it possible to use add_filter() to intervene in the get_current_user function logic?
0
votes
0
answers
162
views
current_user_can() returning true for capability when the user and role do not have the capability
I've been trying to remove the "Customize" from the admin bar by removing the capability from the 'tt_editor' role by adding this to the bottom of the init action function:
$editor = ...
1
vote
0
answers
123
views
Create Unique and Customized User ID for Website Members in WordPress
I want a Feature which can allow Custom User ID creation at Registration on WordPress.
This will be different from the User ID that WordPress creates at Registration.
This one is something that is ...
0
votes
0
answers
58
views
Import users and custom user meta from csv
I need to create some users by importing the basic user info and the wp meta from a csv file. I will need to map some custom user meta values I have into the csv during the import. I'm thinking to ...
0
votes
0
answers
76
views
Extend user search in the users.php page to allow for searching by role and excluding specified email domains from the "users search" input box
Update: A solution for this question was provided byt @t31os_ here Extend user search in the Wp backend area on the users.php page to allow for searching by email domain and role from the "users ...
0
votes
1
answer
330
views
Extend user search in the Wp backend area on the users.php page to allow for searching by email domain and role from the "users search" input box
I have been looking to extend the ability to search users in the backend for some time and have tried variations of several functions recommended in these articles and posts along with others not ...