Disabling an Action

If you would like to disable an action, you may use the function tml_unregister_action(). For instance, if you wanted to disable the "register" action, consider the following code:

function disable_tml_registration( $action ) {
	if ( 'register' == $action ) {
		tml_unregister_action( $action );
	}
}
add_action( 'tml_registered_action', 'disable_tml_registration' );

Likewise, if you wanted to disable password recovery, consider the following code:

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' );