New answers tagged

2

There is the action hook user_register that is called immediately after a user is added to the database. The user id is passed to the hook as an argument. You can use wp_insert_post to insert a new post in that action. You just need to get the relevant info from the user and add it to the post. You can add custom fields to the post you create by referencing ...


-1

This works for me. I am using WP-Members plugin (and hook). add_action( 'wpmem_post_register_data', 'my_registration_hook', 1 ); function my_registration_hook( $fields ) { wp_set_current_user( $fields['ID'] ); $creds = array( 'user_login' => $fields['username'], 'user_password' => $fields['password'], 'rememember' ...


0

Just to chime in, we use a plugin called ProfilePress (http://wordpress.org/plugins/ppress/) and couldn't be happier with it. It's actually a shortcode based WordPress form builder for creating custom login, registration and password reset forms at the front-end of your site.


0

You must use enctype="multipart/form-data" in the <form> tag for the file upload to work.



Top 50 recent answers are included