Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WPUM 2.0.0 Disable remember me in login form
function wpum_disable_remember_me( $fields ) {
if ( isset( $fields['login']['remember'] ) ) {
unset( $fields['login']['remember'] );
}
return $fields;
}
add_filter( 'login_form_fields', 'wpum_disable_remember_me' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment