Tag Info

New answers tagged

0

Have you looked at the Theme My Login plugin? It will do some of what you want, and you can customize it by writing a theme-my-login-custom.php file (assuming you know enough about PHP and Wordpress to do so).


2

Proper hooks for login and register actions: <?php function custom_plugin_hooks() { add_action( 'login_form', 'custom_plugin_form_inputs' ); add_filter( 'authenticate', 'custom_plugin_login_check', 100, 3 ); add_action( 'register_form', 'custom_plugin_form_inputs' ); add_action( 'register_post', 'custom_plugin_registration_check', 100, ...


2

Here is what you do to force registration on sub sites: /** * Require registration for comments on subsites too. */ function ourcomments_pre_option_comment_registration( $value ) { return 1; } add_filter( 'pre_option_comment_registration', 'ourcomments_pre_option_comment_registration', 10, 1 ); To only show social buttons for login something ...


0

You could try blocking access to the default registration through your .htaccess file, adding: Redirect 301 /wp-includes/wp-register.php / which would just redirect all visitors trying to get to the registration page back to the home page. This still allows the functions inside wp-registrer to be accessed by your plugin.


2

I would use the registration_redirect filter. This allows you to set where the user is sent to, but leaves WordPress to perform the redirect (after everything has successfully processed). function wpse_139267_registration_redirect( $url ) { return site_url( 'thank-you' ); } add_filter( 'registration_redirect', 'wpse_139267_registration_redirect' );


0

http://codex.wordpress.org/Plugin_API/Action_Reference/user_register The question you referenced uses the 'register_post' hook which is just before the user gets entered into the database. If the registration is successful, that is when it sounds like you want to redirect. So, use the hook that fires immediately after the user is entered into the ...


0

As far as i know there is no hook or filter to provide a custom User name for default registration process, however if you really want to modify it, you can alter the $_POST data. here is the sample code: add_action('wp_loaded', 'wpse_138736_filter_username'); function wpse_138736_filter_username(){ //your code to extract username from email ...



Top 50 recent answers are included