0
votes
0answers
80 views

get_userdata() not working in my plugin

i am using get_userdata() function in my plugin but it is not showing any values, it is showing blank result. I am able to see the value present in phpmyadmin. I am using it in a plugin ...
4
votes
2answers
3k views

Send user activation email when programmatically creating user

I wondered if someone here might be able to help. Basically, I've created a custom registration form that when validated, inserts a user to the user table. function _new_user($data) { // ...
0
votes
1answer
1k views

Different registration form for different roles

I have customised the worpress registration page by adding new fields using the Cimy User Extra Fields plugin so my site is now fine for allowing users to register as contributors. I now want to ...
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 ...
1
vote
2answers
151 views

How to get the ID of the currently logged in user?

I want to get the ID of the currently logged in user. I've found the function: get_current_user_id which seems to be working, however I'm not sure what 'current' means in this context. Meaning if the ...
0
votes
1answer
139 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); ...