I have added the following two codes to the Theme My Login PHP file though the password recovery is still displaying as an option when I enter icorrect user details:
function disable_tml_registration( $action ) {
if ( 'register' == $action ) {
tml_unregister_action( $action );
}
}
add_action( 'tml_registered_action', 'disable_tml_registration' );
function disable_tml_password_recovery( $action ) {
if ( in_array( $action, array( 'lostpassword', 'resetpass' ) ) ) {
tml_unregister_action( $action );
}
}
add_action( 'tml_registered_action', 'disable_tml_password_recovery' );
Any ideas why this is? Thanks