The tag has no wiki summary.

learn more… | top users | synonyms

4
votes
1answer
1k views

Create posts on user registration

How can I create let say 3 posts after the user finish the registration ? The ideal outcome would be to create 3 posts using the user as the author of the posts and with some pre-defined values. ...
2
votes
1answer
259 views

What hooks should I use for pre-login and pre-registration actions?

I am adding cookie on login page using 'init' action-hook. And than after login I check if this cookie exist in 'login_init' action-hook. And also after user registration I check if this cookie ...
2
votes
2answers
264 views

Can user_register output the password?

I'm trying to output the password of a newly created user in plain text using the user_register hook as explained in this answer. However, upon doing a var_dump of $_POST, I don't see any password ...
1
vote
1answer
129 views

Does the user_register change in multisite?

I've created a function that automatically creates a new post for people when they register. It works great on a standard site but in multisite it stops working. I've spent hours trying to debug it. ...
1
vote
2answers
64 views

How to override WordPress registration and insert an auto-generated username?

I need to auto-generate usernames upon WordPress registration. I have a custom registration form set up and would like to create the username in functions.php. Can someone tell me why this isn't ...
0
votes
2answers
55 views

Create a post with user_register doesn't create title

I've got my user registration to automatically create a post with the user_register hook however the title shows up as (no title) can someone help me with what I'm doing wrong here? ...
0
votes
0answers
23 views

How to hook add_action('user_register', 'my_functon') only when manually adding?

I stumbled upon the following. In functions.php i have a hook which calls a function when a new user is registered: add_action('user_register','do-my-function') This works, but i have also a plugin ...
0
votes
0answers
30 views

Custom register and login page for Wordpress [duplicate]

i have 2 custom page template name: custom-login-page.php and custom-register-page.php I creat 2 page in wordpress using these 2 page template and try to login and register it, it' work. Problem is i ...
0
votes
1answer
120 views

Get first_name and last_name on user_register hook

I have multisite running with 4 sites. One of them has woocommerce. Customers have option to create account while checkout. I have custom analytics where registered customers are labeled with ...
0
votes
1answer
22 views

Populate Website URL at registration time

I am trying to automatically populate/set the "Website" under Contact Information in user profiles at registration time. I want the URL to go to their Author Archives page (i.e., ...
0
votes
0answers
21 views

Parse error on user_register

I am trying to add a matching system. When I signup it will loop through all users that have the same interest as me, interests are done in checkboxes and put in one array. This is my whole function: ...
0
votes
0answers
66 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? ...