Hi @bclaim
I hope you are doing well.
You can use a custom CSS to remove only the register option.
#loginform + #nav a:first-child{
display: none;
}
You can use at the Custom CSS option at the login module.
About the login redirect, I’m afraid the plugin won’t modify the URL structure, but this code can be a workaround:
<?php
add_action( 'login_init', 'user_registration_login_init' );
function user_registration_login_init () {
if( $GLOBALS['pagenow'] === 'wp-login.php' && ! empty( $_REQUEST['action'] && $_REQUEST['action'] === 'register' || $_REQUEST['action'] === 'register/' )) {
wp_redirect( '/my-account' );
exit;
}
}
You can install this code as a mu-plugin or on your child theme’s functions.php
To find more about Mu-plugin:
https://premium.wpmudev.org/docs/getting-started/download-wpmu-dev-plugins-themes/#installing-mu-plugins
Best Regards
Patrick Freitas
Thread Starter
bclaim
(@bclaim)
Hi Patrick,
Thank you for the very informative reply. This works great!
Thanks again for your assistance.