Questions tagged [users]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
13 views

Post Taxonomy Value get from User Field Value

I have user field such as "gender and country" on register form (Created with ACF). Also I have post (wp default posts and CPT) taxonomies called "gender and country My member can create unlimited ...
0
votes
1answer
18 views

Check if someone is editing a post (this content is currently locked)

I'd like to create a kind of auditing. How can I check if an user is modifying an article? Is there a db query I can do to achieve this task? I've found the following solution but I wonder if there ...
0
votes
0answers
12 views

Get URL of logged in user's custom post

I'm running a multi-vendor WP site where users can create a business profile. The profile is a custom post type (wyz-business). I'm looking to get the URL of logged in user's profile (custom post ...
0
votes
1answer
23 views

Why get_user_by() doesn't work in my code?

I am editing the code of a plugin to add a small functionality that I need. I almost made it work, but I really struggle and don't understand why $user_id_for_um_groups = get_user_by( 'email', $...
0
votes
1answer
27 views

Web app vs CMS backend

My company that I work with would like me to investigate how I might go about creating a system in the back end of our website that our employees can you use to help speed up their workload. I am by ...
2
votes
0answers
35 views

In MultiSite, can some users automatically have Site Admin rights on all sites, without granting them Network Admin access?

We have some "content specialists" that we'd like to effectively grant Site Admin access to every site on our network automatically, but still don't want them to be able to access the network admin ...
0
votes
0answers
14 views

Hook into form handle from admin users table

I'm adding a couple of buttons to the user table in a custom column, in which, on click will need to either approve or reject the user via update_user_meta. I've tried hooking in with profile_update,...
0
votes
0answers
12 views

How to restrict access just to “paid” members on a blog posts homepage? [closed]

Hi and thanks for the help, I want to know how can I restrict access just to "paid members (people who pay to register)" but only on this specific area on the website or even if we change the page ...
-1
votes
2answers
8 views

Some Admin disappeared

Last week I added WooCommerce and YITH (catalog mode). All seemed fine. Today, I log in and I no longer see (in the left admin sidebar) the following items/tools: ‘Appearance’ (with theme and such) ...
-1
votes
1answer
15 views

Wordpress User Portal

So I work for a small developer who does some of their lightweight web projects on wordpress. We're searching for a plugin that would allow non tech-savvy people to easily make new posts and pages ...
1
vote
0answers
7 views

What is proper way to store info such as user marking a post as favorite? In post meta or user meta?

I have custom post types such as course, lesson, and lesson_topic and I have ajax call to mark a lesson_topic as favorite for a user. I am currently doing this in the ajax handler: function ...
0
votes
1answer
25 views

Querying specific table row by current user login

I m creating a user based website in Wordpress, where each users can create an account and upload data of their records into the website. But I m having trouble thinking of how users can view a ...
1
vote
1answer
24 views

How to delete users with no order history through phpmyadmin sql?

I have a wordpress ecommerce website which I have begun to update after not touching it for over a year. The first thing I did was implement reCaptcha into all inquiry and contact forms to reduce the ...
0
votes
1answer
8 views

Hook into add_user_role and update based on new and removed roles

I need to add user meta based on each role added and removed. I tried to achieve this by hooking into add_user_role and looping through and updated list of user roles but the old ones are still ...
1
vote
0answers
20 views

get_user_meta an ID for multiple functions

i created an frontend profile for users, where they can add some informations to there profile. All the infos are stored in the usermeta. To show these informations on the frontend profile of the user ...
0
votes
2answers
22 views

Showing User's Post Counts by Custom Post Type in the Author.php?

i see code in link how to showing User's Post Counts by Custom Post Type in the Admin's User List, but i want show posts count in author.php Showing User's Post Counts by Custom Post Type in the ...
0
votes
0answers
10 views

Users connexion make their posts up to first

I am looking to php code solution to put at the top the post of each WP users at each of their connexion. Someone have an idea ?
0
votes
0answers
22 views

User login based on third party API

I am about to create a member site. I have all login credentials and user data in a external REST API. I want to use WordPress as the core to let the users login with their e-mail and password and ...
-1
votes
0answers
8 views

Easiest way to overcome private content managment

I need to create website where my visitor can fullfil a custom form, then he registers. There is also uploaded file in this form. After that he will access his panel where he can view this data from ...
0
votes
1answer
21 views

How to prevent multiple user accounts with the same meta field?

I run an ecommerce site on top of wordpress. There is a particular meta field that users fill out when they checkout with me. Let's say it is the address of the user. I would like to setup my site ...
0
votes
1answer
10 views

user_meta table in staging vs live site

I copied a site over from live to staging and in the process of updating the site users on the LIVE site have updated their information (ie email and passwords). Is it as easy as copying the ...
0
votes
0answers
17 views

Multisite: Delete a user completely, when he is removed from a subsite?

I've got a Multisite Wordpress setup and one of my customer has a plugin called Simple WordPress Membership where he can add new users to his site, so that they can login and write blogs etc. Now ...
1
vote
1answer
33 views

Getting users by specific capability, not role

Is there a way to use the get_users() function, or maybe another way, to retrieve all users of a custom user capability? For example, I have given a select number of users the capability of '...
0
votes
0answers
25 views

How do I set a maximum upload size for a specific user role (Editor)

In Wordpress I want to be able to restrict each Editor to be able to upload 500 mb of different files in total. Is that possible? Thanks Kasper
1
vote
1answer
14 views

Filter users by custom colum not meta key

I want to add custom filter with a custom column from users table not a metaKey. I find this function to filter by a metaKey: add_filter('pre_get_users', 'filter_users_by_job_role_section'); ...
0
votes
2answers
10 views

502 Error when edit some users

When trying to edit a user, error 502 appears. An error appears when editing a some part of users, but I do not see patterns.
0
votes
0answers
21 views

Export Wordpress User Meta to CSV/Excel

I have shops and consultants both set up on Wordpress as users with different roles. I want to include an "Export" link on the consultants' profiles using a shortcode that will export the shops on ...
0
votes
1answer
21 views

Comment restrictions Wodpress

I want to restrict new registered users on my WordPress site from writing comments until 3 days passed their registration date. What solution do you recommend? thanks in advanced.
0
votes
1answer
25 views

Show current user posts only

I am trying to show the front end user only the posts they created. example.com/all-releases Like User-1 can only see his posts, not the User-2 posts nor admin posts. I tried various function codes ...
0
votes
0answers
23 views

Does wp_verify_nonce check ajax form referrer url?

I have a form "accept request" that is displayed conditionally when the accepter clicks on a unique link that was sent via email from the sender. ?> <form id ="accept" action="<?php echo ...
0
votes
0answers
8 views

How to relate Two Different Users from Two Different Roles in Wordpress

How can we relate two users in wordpress that are from two different roles. For example: I have created two roles; Role1: Manager Role2: Sales Users in Manager: Manager will be having multiple ...
0
votes
0answers
13 views

How to restrict End users into logging into wordpress dashboard

I am using saloon plugin where shop owner and super admin both should have access to backend dashboard but i want to restrict end users from accessing backend dashboard i tried using plugin Remove ...
0
votes
1answer
30 views

get_users(); Is an Undefined Function When Used in Cron Job

I am Using a Wordpress cron to update some usermeta of each user every 24 hours. For which i created a cronjob using the interface provided by my hosting provider. The Cron runs, but the code cannot ...
0
votes
0answers
9 views

add an option to change the display name in [wpuf_account] of WPUF plugin

Im using this plugin to edit user information - https://wordpress.org/support/plugin/wp-user-frontend/ When you go to ‘Edit Profile’ in [wpuf_account], it gives an option to edit first and last name ...
1
vote
0answers
60 views

Delete User via Frontend

I have made a table list of registered users. It is accessible by admin role only. <table class="table table-striped w-100"> <thead> <tr> <th>Clock ...
0
votes
0answers
48 views

Showing and Sorting WooCommerce 'Last Order Date' on Users screen

Need to show and sort the 'last order' date from WooCommerce on the Users screen. I was able to get the date to show correctly, but when I go to sort, Wordpress does not show all the users. The site ...
0
votes
0answers
16 views

How do I add profile fields in specific section?

How do I add profile fields under the "Name" section of user profile page. I was able to add fields at top of or at the bottom of user profile edit page, even found solution to edit contact section. ...
0
votes
1answer
13 views

Get all of a user's posts (custom post type) then get cumulative value of a specific meta_key value from those posts

I'm trying to add property values for each user on a real estate website. I have a custom post type "properties." I'd like to take the "listing_price" from all of them and add them up to show how ...
0
votes
0answers
61 views

REST API list_user

I need to get a list of users by specific role. I user this endpoint: GET /users?roles=customer but I got: "code": "rest_user_cannot_view", "message": "Sorry, you are not allowed to filter users by ...
0
votes
1answer
37 views

Custom Field Repeating When Using foreach

I'm trying to display user avatars by login user name using custom fields like this - And here's the code - function user_avatar() { $name = get_post_meta( get_the_ID(), 'user_name', true )...
1
vote
2answers
29 views

What are some best practices for user exit strategy?

We have a key employee who is resigning. I would prefer to retain her attribution for stories she has posted for our institution. My first thought was to create a custom "resigned" user role and move ...
0
votes
1answer
23 views

Fix 'Add Role' Option not there in wordpress 5.2.2

I am making my website on the net and practicing it on localhost wordpress. I want to add a new role in my wordpress, but in both my sites(localhost and internet) I can't find the option to add a role....
0
votes
0answers
8 views

How to Moderate Edits to User Profiles?

I would like to moderate WordPress users’ edits to their own profiles. As I understand it, the default would be for the profile changes to go online immediately. Instead, I’d like to leave the older ...
0
votes
0answers
28 views

How to update a user with REST API v2 knowing only the username?

I'd like to call WP REST API to update a user. I have only username, so I suppose I should retrieve user ID first of all, as the endpoint for updating a user is: GET /wp/v2/users/<id> How to ...
0
votes
1answer
26 views

Page template not working when logged out

I created a page template that removes the navigation and footer coder (while still keeping the call to the style sheet and any javascript) and it works when I am logged into wordpress, but when I log ...
0
votes
1answer
33 views

Get user in rest API endpoint

I'm making some API endpoints that require me to confirm who the user is, and what they can do, before I let them use the endpoint. However, I can't seem to get the current user. My endpoint: ...
0
votes
0answers
17 views

wordpress Account Management generate password missing on my laptop

The button to generate a new password is completely missing in my user accounts on my laptop. Wondering if this could be a security thing? I run a few wordpress accounts and it isn't showing in any of ...
0
votes
0answers
36 views

Display Login user name in Thim:login Popup widget

I want to display username in widget i used the code provided by https://wordpress.stackexchange.com/a/196467/168204 its working but i want to do same for widget and its not working Please help with ...
-1
votes
2answers
25 views

how to show Author post type count

I have multi author wordpress site and every author can publish posts from two different post types . i want to display author post count by post type in author.php . According to codex.wordpress i ...
0
votes
1answer
48 views

Can I use paginate_links() to add a pagination list, yet prevent it from inserting links?

My page displays a list of WordPress users. For pagination, I have used the function paginate_links. This inserts a list onto my page e.g. page 2 page 3 page 4 (screenshot). And each list item is a ...