Stack Exchange Network

Stack Exchange network consists of 174 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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

-1
votes
0answers
5 views

how do i generate dynamic qr code with the form plugin?

I need to generate QR code whenever user fills the form like (name, country, designation), different pages has different form the system will automatically generate QR code. Is there any plugin ...
0
votes
0answers
3 views

Get profile image url from Super Socializer?

I'm using Super Socializer (for Steam login only) and I'd like to get the user's profile image url to use in my template. The standard Wordpress way (below) doesn't work - it just gets the default '...
1
vote
1answer
13 views

Custom default filtering in the user admin panel disables the other sortable columns

My setup I've got a question on the filtering on the user filter in the admin panel. I've added the code to display the "registration_date" filter, which is working fine. I found this website to ...
-1
votes
1answer
22 views

Woocommerce customer role doesn't change if user is already a subscriber

I noticed the following behavior on woocommerce : I have a user on my website who is already registered with 'subscriber' role. When I login and checkout on my woocommerce shop, user role still ...
0
votes
0answers
11 views

Add new user & automatically create a page for that user only that user & admins can edit

This is what I want to do is there any plugins available I want to be able to Add a new user & automatically create a page for that user only The only people that can edit that page is that user ...
0
votes
0answers
24 views

Updated user role inncorrect when using wp_get_current_user()

I ran into an issue with updating a user role, and then checking the current role somewhere later in the code. After an entire day of debugging, and a night's rest, I figured it out by chance. See ...
3
votes
2answers
48 views

How can i force Display names to be the same as Usernames?

i need help. My users register to the website. They type their username user_login (see chello) but the Display name (see chello04) is not the same. It has a random two digits at the end. Is there a ...
0
votes
0answers
11 views

How to force authors to 'submit for review'?

So currently when authors add a post they can publish it straight away. How can i change it so that all their posts need to be reviewed first? I've seen a few codes that can solve that but when it ...
0
votes
1answer
28 views

create a table using user meta custom data

I am trying to create a table that is populated by the users: name, points, training completed. All of this data is in the users admin section. Is there a plug in or code I can look at to understand ...
1
vote
1answer
23 views

Function to allow “Anyone can register”?

I'd been crawling the codex but can't seem to find a function that will allow me to programmatically enable the User registration system. Hopefully, I can make a custom plugin that will enable User ...
0
votes
0answers
9 views

User custom data show in a table

I want to show the user that is logged in what his/her points and training are in a table. They are both in the user data section in wp. Any suggestions, add-ons?
1
vote
1answer
25 views

Assign role to user on first login, if they are first (after admin)

I'm running a Wordpress Multisite. I want the first user to log into a new site to be assigned the Administrator role, so they can administer the other roles. The second user, and all users ...
1
vote
1answer
23 views

Modify user profile data through scripting?

I'm developing a site which will have various Unity games hosted on it, and I want to be able to record the scores the users get in their profiles. I've seen various plugins for adding custom fields, ...
1
vote
0answers
23 views

How to add user from front end

These all things are about WordPress, I want to know that how to give permission to "Subscriber" to add another user having a role "shopper" (I have already made a shopper role using code in function....
2
votes
5answers
45 views

Redirect after users complete profile form

I have a user registration form implemented and working correctly on the front end of a website. My main issue is that I would like to redirect a user after completing the profile form. My idea ...
3
votes
0answers
31 views

How to track user progress?

I'm looking to build a very lightweight learning management system of sorts. I'll have 2 custom post types "Course" and "Lesson". I will associate the Lessons to the Courses, probably by using the ...
1
vote
1answer
14 views

wordpress disable login for unverified user

I have buy a theme form marketplace. This page is auto login after registration. I want to disable auto registration after login and without approving user by admin user can't login. How can do that? ...
2
votes
2answers
24 views

wp_delete_user with username

wp_delete_user() function requires user ID and [optional] reassign ID if the content is to be reassigned to another user. All users' user names are also unique as WP doesn't allow duplicate user ...
1
vote
0answers
14 views

What Is the Proper Way to Merge Usermeta Table to a an existing WP Database?

I'm currently testing some features on a sandbox environment. I have an existing production website and I'd like to ship my production users and other related tables on new sandbox environment. While ...
1
vote
0answers
14 views

Problem with automatic role change through cron job

I have a function called by a daily cron job that automatically changes the role of users after a period of time. The 1st role update should happen 120 days after registration, and a 2nd role update ...
0
votes
2answers
26 views

How to insert wp_users ->user login name to wp_terms when a new user registering?

i need to insert wp_users -> user_login field to wp_terms name and slugs field,when a new user registering. my requirement is admin needs to assign posts to specific users, that is admin need to ...
0
votes
0answers
26 views

Multisite - each site with it's own set of users

I'm looking for a way to separate user accounts per blog/sub-site. I concocted a plan to hook into login/registration process and append the blog_id to the username and email upon one of these actions....
1
vote
0answers
29 views

WP_User_List -> How to open a new edit-page in WordPress admin backend!

i'm doing my first plugin and got stuck with linking a row-action to a new editing-site! What i'm trying to do: -> Manage User Meta on a special settings site. Add some fields for documents and ...
1
vote
0answers
15 views

Subsite access without being a member of the subsite in wp multisite network

How can a user access a subsite without being the member of that subsite in a wp multisite network? What I understand is that a user can not access a private post in a subsite if he is not the ...
0
votes
2answers
24 views

edit user menu item

I want to add an "Edit User" link in my WordPress menu using the native Menu Manager. Is there a URL that I can use that takes the user to their edit profile page? I just don't know what to enter in ...
0
votes
0answers
63 views

specific user group create a page that is automatically a subpage

Iam looking for a solution for the question above! Any ideas? Maybe like $user = wp_get_current_user(); if ( in_array( 'user-role', (array) $user->roles ) ) { //page create function } } ...
1
vote
0answers
29 views

how to get WordPress admin user table columns name in my plugin

I used this to get User list table columns Name. add_filter( 'manage_users_columns', array($this , 'new_modify_user_table')); public function new_modify_user_table( $column ) { $column // ...
0
votes
0answers
13 views

Query to show average # of months all accounts with specific role have been active

I'm trying to determine how long (in average number of months) all accounts (active & deactivated accounts) under role "x" have been around in my site. I have the following piece of code however ...
0
votes
1answer
31 views

get user id in a plugin without a function

I have an admin page, in the callback of this admin page, i need to query into current user's posts. So let's assume this is my function to add menu page: add_menu_page( 'My billings ', 'Billings', '...
2
votes
3answers
71 views

Is it possible to duplicate users on a new Wordpress install?

I have a running site (Site A). I want to re-write the site fully to improve everything but, when I'm finished, I don't want to have to get everyone to sign up to the new site. I wondered if I could ...
10
votes
3answers
400 views

How to get WordPress Username in Array format

I want to create an Autocomplete function in WordPress. I want a search field from where username can be searched. I am using following JQuery UI. <label>Users</label> <input type="...
1
vote
2answers
15 views

How can I copy all users to newly created site on a multisite network in Wordpress?

As when I create a new site on multisite wordpress network, then only admin user gets created. I want all users which are present on my first site to be present here too. I have tried several import ...
0
votes
0answers
19 views

Only show a specific user roles orders on Woocommerce and assign to a person/other user role

We are building and testing a site on Woo. We have a 3rd party that we want to login and just see on the orders page, those orders relevant to her work. We have created a few new user roles, so in ...
0
votes
1answer
19 views

How can I prevent certain custom roles from seeing other custom roles on the user list page?

So I am building a system with 3 different custom roles - Admins, Providers, and Users. Providers have access to users.php, or the list users page. However, they should not be able to see/edit/access ...
0
votes
0answers
84 views

Theme my login plugin user redirection

i need help with profile redirection for my registers users, i want it to be redirected to the member profile page and not the wordpress backend page. $user_links = apply_filters( '...
0
votes
1answer
25 views

Modify new user email notification in network admin screen wp multisite

Can please teach me which function reference should I use to modify new user email notification in network admin screen -> add user. I want to use custom email template for notify user? it will ...
0
votes
0answers
12 views

What's the problem with caching database queries for logged in users?

While going throught the settings of W3 Total Cache's database section, I came across the following setting: [   ] Don't cache queries for logged in users Enabling this option is ...
1
vote
1answer
17 views

Add count for new registered user in Users tab

Is there a way or hooks that I can use to add counter in Users tab for new registered users like this?. http://prntscr.com/k1bxpn
1
vote
1answer
30 views

Check for user meta data at Login

On my website, users have a meta data attribute that is set to either true or false depending on whether they have confirmed their email address or not. I'm trying to not let them log in if they have ...
0
votes
1answer
25 views

How to set up User email verification after Signup?

You know how all these websites send out links to their new users for them to verify their Email address? I'm trying to set up something like this but after some research I still haven't found a good ...
0
votes
0answers
16 views

Limit a user only to wp-cli only use

I have developed a docker wordpress solution and it uses wp-cli to do the required installation from shell. The installation itself required a user to get generated therefore I create a default admin ...
0
votes
1answer
14 views

Creating User Profiles using author.php

I am trying to create a user profile template using author.php. However, the template remains blank if I try to see the profile of a user that has not created any posts. www.website.com/author/user1 -...
0
votes
0answers
14 views

Which users are viewing the page/post [LIVE]

There arn't any plugins for this. If im visiting a post or a page i would like the viewers avatar/nickname to be shown at the bottom of the post/page. If he/she leaves that page then its removed from ...
2
votes
1answer
35 views

Redirect User to Homepage if no other redirect is specified

Basically I want to write some code that decided wether to redirect a User to the Home page of the website or to the page that the user came from prior to logging in. I have this code which ...
1
vote
1answer
48 views

Ajax Check Post Status

I have this function which emails all users who subscribe to an author whenever the author creates a new post which works fine. I am trying to ajaxify the function and check every few few seconds if a ...
0
votes
0answers
24 views

how can i login with user-meta (phone-number)

i want to write one plugin with this Properies : 1- register with phone number 2- login just with phone number and password in login form. now my code is : add_action( 'register_form', '...
0
votes
0answers
11 views

Passing along User related Variables between two pages?

My situation and my problem: I have about 200 pages of a custom post type on my website. A user can click a button that reads "Add to my List" on each page which adds a custom taxonomy term to the ...
0
votes
0answers
12 views

Manage booking appointment system for different post of different users

I have a WordPress website, In which customer can register their self and submit the post for the services they provide. Now, I want to add appointment booking system, so that visitors can book an ...
0
votes
0answers
24 views

Update User Meta Via Ajax

Can someone please tell me what I'm doing wrong here? I have an ajax function which runs every few seconds and it basically checks 2 database tables and if they do not match then update one of the ...
0
votes
1answer
15 views

Query for post term that matches user ID

I'm trying to set up something to decide wether the current post has a custom taxonomy term that matches the current users ID. So far I set up a variable that stores the taxonomy terms of the given ...