I have a question about deregistering ‘wp-admin’ styles specifically on the login screen.
If I just globally run:
<?php wp_deregister_style( 'wp-admin' ); ?>
my login screen will have no styles.
If I run a function like:
function remove_default_styles() {
wp_deregister_style( 'wp-admin' );
}
add_action( 'admin_enqueue_scripts', 'remove_default_styles' );
this removes the styles successfully in the admin area, but not on the login page.
However, if I run the same function with a login action, like so:
add_action( 'login_enqueue_scripts', 'remove_default_styles' );
it has no effect.
Does anyone know how to deregister the default styles just on the login screen?
Thanks
Oh. It seems like the action I needed was ‘login_init’. Like so: