Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    remove_filter( 'site_url', 'tml_filter_site_url', 10 );
    Thread Starter Vayu Robins

    (@vayu)

    Thanks @jfarthing84 🙂

    This is how I solved it:

    add_action( 'tml_registered_action', function( $action ) {
    
    	// Let users login via the WordPress wp-admin url.
    	remove_filter( 'site_url', 'tml_filter_site_url', 10, 3 );
    	
    	if ( 'register' === $action || 'resetpass' === $action || 'dashboard' === $action || 'lostpassword' === $action ) {
    
    		tml_unregister_action( $action );
    
    	}
    
    }, 10, 1 );
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Keep access to wp-admin for login’ is closed to new replies.