wp_set_auth_cookie causes 403 error in the wooCommerce checkout
wp_set_auth_cookie causes 403 error in the wooCommerce checkout
wp_set_auth_cookie causes 403 error in the wooCommerce checkout
Conditionally registering users
Multisite – user email activation links broken
New user signup via REST API
Display alert on successful user Sign Up
Hook into registration_errors (The WP Codex is woefully incomplete on this, but see links below). Sorry this isn’t more helpful — the issue is a little more complex than it seems at the outset. I’ll look into it more later. Links: http://adambrown.info/p/wp_hooks/hook/registration_errors http://core.trac.wordpress.org/ticket/10672 http://codex.wordpress.org/Plugin_API/Filter_Reference/registration_errors and http://codex.wordpress.org/Plugin_API/Action_Reference/register_post
If you want to keep this information in the $_GET, you will have to modify the form’s action parameter URL. You can do this by hooking into site_url: add_filter( ‘site_url’, ‘wpse18418_site_url’, 10, 4 ); function wpse18418_site_url( $url, $path, $scheme, $blog_id ) { if ( ‘login_post’ == $scheme ) { $url .= ‘&role=doctor’; // Or do … Read more
you can still use WordPress and disable the front end functionality, or like @OneTrickPony suggested you can try BackPress which is a PHP library of core functionality for web applications that grew out of WordPress.
You can check my tutorial for front-end user registration and login in WordPress: http://www.cozmoslabs.com/1012-wordpress-user-registration-template-and-custom-user-profile-fields/ As to the wp_signon, wp_insert_user, wp_create_user and wp_update_user they take care of all sanitation and validation of your content. Also you don’t need to use those filters in wp_create_user to create your users.
You should be able to hook into the register_form_validation hook (which may be the same hook you’re already using. I’m just not sure where they do the validation) and add something like: function my_register_validation() { if(isset($_GET[‘ref’])){ header(‘Location: http://www.example.com/wp-login?action=register&ref=$_GET[ref]’); } add_filter(‘ my_register_validation’, ‘register_form’); I think that is the right idea the code above is untested but … Read more