0
votes
2answers
123 views

First and last name fields not filled when using wp_insert_user

I've written a plugin to allow authentication to a WordPress install via an external API. Everything is working except the first and last names are not being set for the new WordPress user created by ...
0
votes
0answers
57 views

Get first_name on hook user_register

I have created a plugin for saving user info. I have used a action hook user_register, but I don’t get the values of first_name and last_name. What wrong in my code? ...
0
votes
1answer
139 views

New User Form - Custom Menu Page

I have a question concerning creating a new user. I'm creating a plugin for this wp site I am working on. I have set up custom roles for these and I'd like to have a separate menu item for the "Owner" ...
1
vote
1answer
104 views

Best practice for show data to one specific user?

I'm attempting to build a locked page on wordpress (through a plugin) that shows differant data, depending on who signs-in. Essentially it has three screens, as follows: If you sign-in as the admin ...
1
vote
2answers
240 views

global $current_user not current user

I believe I have a misunderstanding of what the global variable $current_user is exactly. I'm attempting to display the current user's email and name on a page using add_filter('the_content', ...
0
votes
0answers
29 views

Multiple Users Logged In Causing Incorrect Account Returned

I have a plugin that I have written that has a front-end login and I have had reports by multiple users that state that when they login (presumably at the same time???), they see someone else's ...
2
votes
1answer
58 views

Generating User(s) with Settings API

I am trying to create a plugin that will generate users. I am pretty new to Wordpress and my PHP is ehhhh. The idea for it is for the plugin to generate multiple users when its finished. Right now ...
3
votes
1answer
390 views

Where the Nickname is being used in WordPress

I see most of the place is using the "Display name", so why I need to set a Nickname? Where it is being used?
1
vote
1answer
370 views

Display custom fields in frontside user profile

I installed the CIMY User Extra Fields plugin to add new custom fields in theuser profile. I added 1 custom field for gender to the user profile but it displays only in the admin panel user profile. ...
0
votes
1answer
92 views

Wp-admin Custom User Management

I am working on a plugin for which I will have to develop a backend page similar to the built-in "Users" one, in the sense that it will be basically do the same things: list the existing users ( using ...
0
votes
1answer
69 views

How can I change my assigned user role in WordPress 3.5.1?

My current user role is "Administrator". I'd like to change my role to "Editor" (through out database field). I read Database_Description, but it did not help.
0
votes
1answer
58 views

How to relate the Category to user?

I am developing one new plugin, In that i had a section to create new category, and having the field Created By(listing all the users in this field). I am storing the category name in WP_terms and ...
0
votes
2answers
4k views

Custom user profile, registration, login page with theme

WordPress user profile page uses the administration interface, and its user registration / login page is not part of the theme. I would like to change it into the custom theme of my site customize ...
0
votes
2answers
300 views

How to build a fool proof AdSense revenue sharing model?

I have 5 author levels in my WordPress site. Levels are calculated using points - level 1 - level 2 - level 3 - level 4 - level 5 Authors getting impressions based on author levels like this. ...
0
votes
2answers
957 views

What is the proper way to get logged in user id in a plugin?

I need to get logged in user id inside my plugin. Is this the proper way? $root = dirname(dirname(dirname(dirname(__FILE__)))); if (file_exists($root.'/wp-load.php')) { ...
0
votes
2answers
367 views

Subscribe to author?

Basically, I want to follow the author by other WordPress users. Whenever an author posts new post subscribed users need to get notification by email. If it's not already there, I can create a plugin ...
1
vote
1answer
122 views

Display list of uploaded images, filtered by user under a specific user group

I am planning to create a "Photography" page in my wordpress site. In that page, there will be a list of the photographers (maybe create a user group called 'photographers') and display the images ...
0
votes
1answer
135 views

first_name property missing inside register_user action hook

I'm trying to access the $user->first_name property from a function triggered by the register_user action hook but it's not there: function do_stuff($user_id) { $new_user = get_userdata($user_id); ...
2
votes
4answers
4k views

How to check username/password without signing in the user

I'm writing a plugin that creates an API endpoint that validates username/password pairs. I'm currently using wp_signon() to check whether the username/password combo works. This works fine when the ...
1
vote
1answer
1k views

How to use WP default post list tables in a plugin?

I'm developping a plugin to manage a base of users and I'd like to show them in the same type of table used in other parts of the WP admin (post lists, user lists, etc.), I'd like to have the same ...
0
votes
2answers
352 views

get author of published post

I am using the publish_post action to run some checks on a user after their post is published: $author_ID = ???? add_action('publish_post', 'rhb_check_current_user', 10, $author_ID); How can I get ...
1
vote
1answer
394 views

Function Get User Object By Username?

Which function can be used to get the user's object using the username? I've tried get_userdatabylogin() but the function seemed to throw an error: Parse error, unexpected T_STRING on line xx The ...