Created
June 1, 2018 11:48
-
-
Save alessandrotesoro/661f2e2e1bfcb09df652d8bd7c68588e to your computer and use it in GitHub Desktop.
WPUM 2.0.0 Disable remember me in login form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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