Hi @knudkp,
For disabling “Register” link, go to “Dashboard=> Settings” and ‘uncheck’ “Anyone can register” in Membership. This will remove the “Register” Link.
And for disabling the “Lost Password” link, create a child theme ( You can find the details on how to create child theme HERE ). Then in your child theme’s function.php add the following codes.
add_filter ( 'allow_password_reset', '__return_false' );
function catchbase_child_remove_password_reset_text ( $text ) { if ( $text == 'Lost your password?' ) { $text = ''; } return $text; }
function catchbase_child_remove_password_reset() { add_filter ( 'gettext', 'catchbase_child_remove_password_reset_text' ); }
add_action ( 'login_head', 'catchbase_child_remove_password_reset' );
function catchbase_child_remove_password_reset_text_in ( $text ) { return str_replace ( '<a href="http://localhost/me-prac-1/wp-login.php?action=lostpassword">Lost your password?</a>', '', $text ); }
add_filter ( 'login_errors', 'catchbase_child_remove_password_reset_text_in' );
Regards,
Mahesh