Tagged Questions

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

learn more… | top users | synonyms (1)

1
vote
1answer
11 views

Getting user roles in plugin files

I have a plugin in which I need to use the get_editable_roles() function but I keep getting a fatal error saying that the function does not exist. In my main plugin file I have this code: function ...
0
votes
1answer
14 views

BuddyPress | Check if user is in current group [on hold]

I'm developing a plugin for a website, which uses the Group Extension API to create a new "subpage" in the group's page, just like Home, Members... Here's the code: class BP_Suggest extends ...
0
votes
1answer
21 views

WP_User_Query with combined meta query - not working?

I'm trying to use WP_User_Query class to list all users basing on their specific meta fields. When I use simple single-meta query, it works fine: $q = new WP_User_Query( array( 'role' => ...
-1
votes
0answers
9 views

How can I allow my website users to add their paypal button onto their profile page? [on hold]

I have a blogging community. All the users on the site have their own page, and can add and update content on their page. I want to implement something, and want to know if and how it can be done. I ...
0
votes
1answer
17 views

Separate Profiles for Users

I may be using the word - 'Profile' wrong here, but after two hours of googling am left with zero results. So, the query is as follows - We wanted to make a site where we can invite writers to write ...
1
vote
1answer
33 views

Query wp_usermeta alongside wp_users

I want to use the WordPress query functions and no external plugins for the task. Here is what I have so far: add_filter('user_search_columns', 'user_search_columns_bd' , 10, 3); function ...
0
votes
1answer
28 views

Wordpress Authentication Middleware

What I want to achieve is: For every request , if the user is not logged he / she will be redirected to the log in page. If the user is logged in then he / she can access the site. class Auth{ ...
0
votes
1answer
26 views

Admin approval for editing user profile

I was looking for a plugin but to no avail. Anyway, I'm building a custom Wordpress theme using ACF Pro (which works perfectly) and have added a lot of different custom fields for each user (like ...
-2
votes
0answers
13 views

Woocommerce order status based dashboard [closed]

I created several user roles based from the shop_manager. How do you make it that each type of shop_manager is able to see orders with a particular status from the orders dashboard? Example: ...
0
votes
0answers
13 views

Restrict all possible back end options for users

I was looking around for the best BACK END user restriction plugin. I could not find a plugin that is capable to restrict ALL POSSIBLE AND SINGLE OPTIONS. They all allow you to restrict basic options ...
0
votes
0answers
14 views

Login user automatically between two installs

I have two wordpress installations, on domain.com and support.domain.com. I figured out how to sync the users, now I would need to find out how to sync the login state, so the users won't have to ...
0
votes
2answers
18 views

How to check if a user exists by a given id

Is there any way to check if a user id exists? I want to create a function similar to username_exists() but which returns if the id exists or not.
0
votes
1answer
17 views

Wordpress Redirect Specific User. Tired of Peter's redirect Plugin its not working

I was trying this since 2days still not a good answer. Tired of Peter's login its not working. I want to redirect a specific User (Like "John" or someone) to a specific Page. its a hidden one i want ...
0
votes
0answers
15 views

Remove all the Mysql user that do not use gmail and yahoo

i need some urgent help for my website. (wordpress) we have almost 200K user but there is almost 30K user are bot/fake that are not using gmail or yahoo email address. bot/fake user use email address ...
0
votes
1answer
14 views

How to share User Database between Two Multisite Installations + More

My situation is a bit different to the other questions/answers I have read online here. Currently I have a Wordpress Multisite Installation on Server A. Server A is almost full in terms of ...
0
votes
1answer
11 views

How To Find The ID Of All Registered Users?

How can I get the IDs of user IDs, regardless of role?
0
votes
0answers
9 views

Planning to implement member homepage with custom queries, things to watch out for?

I'm planning to develop a custom user portal which will populate the member's homepage with queries based on options the user has selected. I foresee it going as so: Collect information (what ...
0
votes
1answer
23 views

When a user registers, create a page from an existing template with their username as the page name

I am wondering if something like this is possible? If so, where would I start! I'm certainly not looking for someone to explain 100% fully and give free code examples etc, only a nudge in the right ...
0
votes
1answer
44 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
20 views

Wordpress intranet, dropbox integration

For my sports team i am building a wordpress based intranet (closed environment which requires log in) to share messages. Everyone in this system needs to have his own space for storing files such as ...
0
votes
2answers
93 views

get_current_user_id() returns 0?

I'm trying to get the currently login user's id in WordPress. I've used the following code: function users_list() { global $current_user; $current_user = wp_get_current_user(); echo 'User ...
1
vote
0answers
26 views

wordpress archive a user

Please note this question was originally created in stack overflow. I have moved it here due to recommendation. I apologize if this can be answered elsewhere. I tried searching around with no ...
0
votes
0answers
20 views

How to sort users by registration date in the admin area of the Wordpress Multisite?

Wordpress Multisite has a sortable Registered column in the list of users in the wp-admin area. This is fine, but it sorts users by user id, not by registered date. How to change this?
0
votes
0answers
18 views

Wordpress MySQL query to add multiple users with related article

What I need is to add 100 users to wordpress and each one should have one post assigned to him, like a profile page (I don't want to use the default wordpress profiles because in the feature each user ...
0
votes
1answer
20 views

Not able to call value in the core files

I am working on a theme that display profiles I build a code according to theme - that it should display only limited profiles with the role queen and king.. I manage to open all the profile now the ...
0
votes
1answer
32 views

Get User Role by ID not working

I'm using the PHP code seen at the bottom of this post to get the user's role from user ID. It works, but fails if the user role has been changed after registering. I've been looking for ages trying ...
0
votes
0answers
19 views

Getting user meta value in default user list in wp-admin (MU)

is there any way I can get value from a specified user meta in the default user list in WPMU? I am talking about the wp-admin/network/users.php list. It lists Username, Name, E-mail, Registration date ...
0
votes
1answer
35 views

How to query authors by custom taxonomy?

I have a custom taxonomy for users which is country. Is there a way to query all admins by term_id or should I get all users and check each one with a for loop? I tried this: $user_query = new ...
0
votes
2answers
35 views

Storing user submitted forms [closed]

I was wondering what's the best way to create a form which can only be seen by registered users. The main idea I'd like to achieve here is for users to log in and gain access to a page where there's ...
0
votes
1answer
32 views

How to order posts by the user_login that corresponds to a meta_value (which is a user id)?

I'm trying to create sortable column headers for a CPT list, but I'm stuck on one piece. When clicking on an "Assignee" column head, I want the list to display alphabetically by the login name of the ...
0
votes
1answer
52 views

Export Users and their Advanced Custom Fields

I've google it but i am still looking for a solution. Is there a plugin or method to export wordpress users with their advanced custom fields? I don't want to export ACFs structure but users' data.
0
votes
0answers
21 views

Create advanced/editable wordpress profile page on the frontend

I'm spending days and days traying to code a frontend user profile page where logged-in users can edit their data, but seems there is no right way to do that. Nobody on web seems to explain a secure ...
0
votes
0answers
19 views

How to prevent deleting a user

I'm trying to disable the user when the user is deleted. So I want to keep the data of user, but preventing access. I know that I've the option to reassign in wp_delete_user() but I prefer keep the ID ...
4
votes
2answers
76 views

user change password email when reset by admin

I am really new to wordpress programming and I am not even sure if this feature exist. What I am trying to do is send email to users (not admin) when I as an admin change their password/email? At ...
1
vote
0answers
25 views

Spam users registers even when registration is disabled

I'm getting a lot of spam users registering on my site, even though I have disabled All users can register in the control panel and comments is disabled on all posts. Are anyone else experiencing ...
2
votes
1answer
38 views

WP-Admin edit.php & post.php slowdown after import of 10k users

Situation: Clean wordpress install No plugins VPS server 5.2ghz / 4gb RAM (Default Directadmin) Import of 10k users Problem: WP-Admin edit.php and post.php take >4sec to load. A custom post ...
0
votes
1answer
16 views

How to get only 1 role from user

I have this code that will display all the roles for that particular user, but I only need to display 1 role from the user. I have installed bbpress so the code below will display out 2 roles. $user ...
0
votes
1answer
18 views

Get the author registration date in the header.php file

I have some code that executes in header.php as follows: if (is_author()) { $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author)); ...
2
votes
2answers
71 views

Get user's most published categories

I am working on listing all users similar to the Users page here on SE. When listing each user, I want to add their 2 categories they have published most into. All categories are within Posts. ...
1
vote
1answer
21 views

Obtaining user table for one site on multisite set up

I'm trying to select only users that are registered for a specific site on my multisite set up and see that the table for the users has collected everyone that is on the network. Is there away I can ...
0
votes
1answer
34 views

Can i use two different user tables for on WP install?

I like to make a difference between internal use of our WP website and extern by using an seperate users table and usermeta table, i tried this but it doesn't work ...
0
votes
0answers
61 views

How to 'remember' a site member's last visited page?

I've seen this on a couple of sites - they offer a multipage tutorials to site members. When you return to the site, they have a link that takes to the last page of the tutorial you were on. How is ...
0
votes
1answer
31 views

Auto delete Wordpress users according to time

In my wordpress site spam users are registered so i am add mail confirmation to my resister area. And my problem is how can i delete users when not check or activated the mail. is it possible to ...
0
votes
0answers
31 views

Create custom post on user registration and include custom fields

I am trying to create a custom post when a user registers. I found the solution below very helpful and it basically works. The problem I have is that I also need to set some custom field values when ...
0
votes
1answer
22 views

Wordpress sync with phpbb

How can i sync the wordpress database users with phpbb database users so i can log on each one with the same user at any time and if there`s no user created for the wordpress to log in with the phpbb ...
0
votes
1answer
31 views

Front end login and page restriction

I've read a few posts about this topic, but I haven't found any plugins that fit my need. What I want to achieve: User A and B both have a login. When user A logs in, he's redirected to ...
0
votes
1answer
46 views

How to disable users changing their display_name?

What would I have to do to prevent users changing their display_name?
0
votes
0answers
30 views

User “none” role

Can someone explain what does the "none" user role mean in WordPress? Which capabilities has this user role? Is it a good practise to use that role for a basic user registration? Thank you.
0
votes
0answers
48 views

Sorting a list of users by a user taxonomy with Pods

I’m trying to use user taxonomies to sort my userbase into categories and then show a list of taxonomies in the sidebar that on click expands to show the users within each taxonomy. I’m struggling a ...
0
votes
1answer
13 views

Hide hour from displaying when using user_registered

$user->user_registered displays "Registered since: 2014-08-18 07:25:22" I just want to show the date, not the hour. How can I hide the hour and just show the date? thank you