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
0answers
14 views

Restricting wordpress login sessions for a web app

I am creating a webgl unity app that sits on a wp site and uses the wp accounts to store data. It works really well, however an issue I have is that currently a user can be logged in on two machines ...
0
votes
1answer
17 views

Nickname field isn't appearing in Admin

I'm getting the following error message when I try to update my user account settings: Your Nickname must be different than your login name. Please choose a different Nickname. But there's no Nickname ...
0
votes
0answers
26 views

How to let user “register” to a custom post type?

I have made a custom post type for events and stuff (dates) and now i want users of the website sign in/register on a post if they want to attend. With each post there is a limit of people and they ...
1
vote
1answer
70 views

List all private pages user has access rights to read

I am trying to list all private pages that user has access to read. To explain in more details, below is the initial setup: Each user has a specific role created and assigned only ability to read ...
0
votes
0answers
10 views

Prevent users from having front-end pages

Is there a way to stop users from having front-end pages? For example, for custom post-types I have options for: 'has_archive' => false, 'exclude_from_search' => ...
0
votes
0answers
14 views

Same user Caperbilities have different abilities

I am using Publish Press and WooCommerce, but this is not a question related to these plugins directly, this is a question as to how WordPress manages capabilities. Why is it that when I edit the ...
0
votes
0answers
17 views

Allowing duplicating users with same user_login and user_email

I would need a solution that the system would accept duplicates on user_login. I found a plugin for user_email duplicates, but I also need for user_login. Any idea is welcome, Thanks :)
0
votes
0answers
15 views

With domain-mapping active on a multiste network, is it possible for users to have different accounts for each subsite?

I'm aware that, by default, users are shared among subsites on a network multisite but I keep wondering if there was a way for users to have different, unique accounts for each subsite.
0
votes
0answers
9 views

Send user auto generated password on different email

On one of my websites, I'm trying to customize different email content like user activation email/new user registration email. Basically, on the activation email, it sends an activation link with the ...
0
votes
1answer
17 views

current_user_can() causing critical error

I am writing a function to add a link to the Media Library in the admin menu on front end: function add_media_link_to_admin_menu( $wp_admin_bar ) { // add Media Library to admin menu $...
0
votes
2answers
46 views

Shortcode to update user meta

I want to create a button on the front end and when user click, the value "user-meta" change 'validate' function func_change_validate() { if (is_user_logged_in()) { $current_user ...
0
votes
0answers
41 views

change user password REST API

I am trying to let a user change their password via the API. What it looks like here is that I can send a POST request to the users endpoint with their user ID at the end, sending the new password in ...
0
votes
0answers
11 views

Show all post type posts in manage users posts column

In my system I have several users, and each have products and posts under them. In Manage Users page, each user's posts column only counts the posts post-type. How can I add additional post types to ...
0
votes
0answers
8 views

Allow a user to edit subscriber user profiles in FrontEnd

Hi I'm trying to find a way or a plugin to get a certain user to only edit the profiles of the subscribers users in FrontEnd, at the moment I'm trying with Profile Builder, but I can't find the way to ...
0
votes
1answer
30 views

Update user role for expired membership

Is it possible to use a function in functions.php that would automatically change user role when a membership goes from status "active" to "expired" ? For example : if an active ...
0
votes
0answers
19 views

Use the GET method to get the user id from External API and show all user fields

I'm trying to use the wp_remote_get function to make a call to external api, below the process. The frontend user clicks on the edit profile item. wp_remote_get makes a call which returns the id of ...
0
votes
0answers
10 views

Email verification for new user created

I just signed up with a forum account so I could post this question. In the process, this WordPress forum required me to verify my email address, where I was provided a unique url that I clicked to ...
0
votes
0answers
5 views

Customize user account creation and activation process in wordpress/buddypress

I need to setup a community on a wordpress based website. I'm taking in consideration buddypress but it will not have a great documentation about the api. I need to give the users the simple ability ...
0
votes
0answers
13 views

How to show linkedin from user info wordpress?

i need your help guys i want to show this linkedin information from my user management. But i dont know how to show it cause i dont know why this form is there, i mean so many form url profile there. ...
0
votes
0answers
14 views

Nickname input in Add New User

I would like to be able to set up a new user's nickname in Add New User, rather than have the default username and modify it. Is there a way to add the Nickname field to this page?
1
vote
0answers
15 views

WordPress API for search

I have a search form for users on my website. I have a custom field called 'location' which is a country dropdown. If I type in a user's name and select a country from the dropdown I see this in the ...
0
votes
0answers
13 views

How to allow access based on the user meta flag

I want to check user meta data and allow access. where I am inserting user_status in wp_usermeta table at the time of Registration. How to validate/verify meta value with password for login. Here is ...
1
vote
1answer
25 views

Limit amout of sessions on user-by-user basis?

I've searched and searched, but to no avail - hope you can help! I'm building a subscription based online training site for a client. The service caters to companies, who will buy access for their ...
0
votes
0answers
23 views

Authentication between two different sites using the WordPress login cookie

Two different WordPress, two different users, same account and password. In this case, if the user wants to go to (A -> B) the B site after logging in to the A site, the session HASH is already ...
0
votes
2answers
32 views

How to block specific user id in custom login form?

I've been looking for this method for weeks, but still can't find it. There are so many sites that discuss how to create a custom login page, but they don't cover how to block a specific id like the ...
1
vote
1answer
29 views

How to Check User type from the form user registers in user_register hook?

I am registering two types of users. Student and Teacher. Student is registered through student registration form (easy registration form plugin) and teacher through teacher registration form(also ...
0
votes
0answers
11 views

creating custom user roles in Wordpress completely hides post type when logged into custom user role

I asked about this a while ago https://stackoverflow.com/questions/66231525/wordpress-custom-user-roles-edit-others-posts I changed my approach but it still doesn't work. I've been attempting to ...
0
votes
1answer
17 views

Get current user id in function php

I know that this question is already often asked but there is no exact answer for it. I need to get the loggedin user id to change a value in the database for this user. I tried 2 ways it didn't work. ...
0
votes
0answers
20 views

wp_insert_user error

Hi before this I using wp_create_user. It was working properly. Now I change it little bit of my code to use wp_insert_user. I change because i have custom field to set but now I using standard field ,...
0
votes
1answer
26 views

how to remove email field from default user registration form on wordpress

Due to some privacy policy i don't want to store user personal information such as First Name, Last Name and Email address in wordpress database. for this I want to signup user with only username and ...
0
votes
0answers
13 views

Allow users to subscribe to posts submitted by a specific user and/or user group and display those posts in posts index feed

I have a WP project that requires a complex set up. I'm trying to set up my WP site to allow Company Profiles which are basically user groups. In the group users that belong to that group will be able ...
0
votes
0answers
22 views

Wordpress/Woocommerce multisite prevent crosssite login

I want to prevent that users can login the different subsites. for example: user1 can login site1 but not site2 I found out that this is possible when using the wordpres login, but when user1 uses ...
0
votes
1answer
31 views

What is correct way to change user's email?

When a user updates their email address we are seeing that their old email address becomes unavailable to register. This is undesirable. It appears this is based on the user_login and user_nicename ...
0
votes
1answer
24 views

SQL Bulk update all Wordpress user's nicknames to firstname + lastname format

I'm trying to bulk update all my users on one of my Wordpress sites to so that their nicknames aren't the default username but have the format firstname + lastname instead. I've put together this code ...
0
votes
1answer
23 views

Load user by specific role

I need to load only the subscribers $args = array('role' => 'Subscriber'); $subscribers = get_users($args); but with this, it returns also the users that are subscriber AND other role (I need to ...
0
votes
0answers
9 views

Can we hide a certain user in WP?

Is it possible to hide a user in Users panel of WordPress without using any plugin. I had achieve this using plugins but I want to do it the old fashion way if its possible, like write a code in ...
0
votes
0answers
8 views

Troubleshoot Sortable xProfile Column in Admin Users Screen

I’m trying to add a sortable Country column to the Users screen for one of my BuddyPress xProfile fields. My BuddyPress field is a select2 dropdown, where my members select their country from an array ...
0
votes
1answer
28 views

Random users always showing same 8 users

I am trying to display some random users on the page. It is changing the order of the users it is showing, but it is only showing the same users instead of randomizing from all users in the database. ...
1
vote
1answer
17 views

Stopping user deletion from running on error

I am writing the following code to do some cleanup before deleting a user via the admin area function delete_user_custom_data ($user_id) { $result = do_some_cleanp($user_id); // The ...
1
vote
0answers
29 views

Four columns in the wp_users table

I am writing custom code to allow users of my site delete their own accounts from the front-end (i.e., they do not have to logon to the WordPress admin area to perform certain actions, but rather I ...
0
votes
0answers
24 views

Migrate Users From laravel to wordpress

we used Laravel before , and now we are moving to Wordpress, so we need to migrate all users including the passwords , is this possible? thanks
0
votes
1answer
17 views

Redirect logged on user to a specific page based on wp user role, page id

I am trying to redirect users(subscribers) to a particular page based on the following conditions 1. (subscriber) user is logged on 2. specific page id is matched 3. wp user role = subscriber which is ...
1
vote
1answer
33 views

Rule to redirect non logged in User to Custom Registration/login Page in .htaccess file

I am trying to redirect not logged in users from the "/purchaseads/purchase.php" to custom registration/login url "/purchaseads/registrationurl"on wordpress website. Unfortunately ...
1
vote
0answers
15 views

Custom user login page by creating a plugin

I am creating a custom user interface (separate from the WordPress user system) that relies heavy on values from a mysql database. I have figured out how to access these values, and with PHP files ...
0
votes
1answer
17 views

How can I show a button in WordPress but make it unclickable unless logged in?

I'm hoping someone can point me in the right direction. I don't wish to have any of my Wordpress site hidden, but i have an HTML button in my post content. I wish for the button to be visible to ...
1
vote
1answer
39 views

Register visits of my pages in wordpresss

I have a shortcode that obtains the name of the person logged into wordpress, I would like that shortcode when the person enters a page where I have my shortcode create a .text file and save their ...
1
vote
1answer
38 views

Force redirect not logged in user to (wp-login.php or wp-admin) for specific page

I am currently using a Wordpress plugin (Pagerestrict plugin which references URLS based on Page ID/Slugs)to restrict certain pages to logged in users only. This plugin works fine with standard ...
0
votes
0answers
19 views

How to remember which page the user was on before logout?

I want to make a website with restricted user access. I have found several plugins to do that. Now I want my wordpress website to remember the page the user was on before they logout. Besides that, I ...
0
votes
0answers
24 views

Easily adding multiple existing users to a multisite site

I manage a multisite network for a school. The sites are private (password protected), but users within the network should be allowed to access other sites as subscribers. (i.e. all students in a ...
0
votes
0answers
10 views

Collecting data in RafflePress

I'm new to WordPress and I'm using RafflePress to run a giveaway to collect information for marketing, things like first and last name, phone number, and email. How would I be able to collect the data ...

1
2 3 4 5
40