How to enable “remember me” checkbox in login forms by default?

I have wordpress website and i want to enable "remember me" checkbox on login forms by default because lot of user would like to login all the time until they will delete cookies. If the user does not want to be remembered, they can just uncheck the checkbox.Even i tried plugin (don't remember plugin name) but that plugin starts crashing my website. Is there any code to solve this problem?

Topic wp-login-form Wordpress

Category Web


Check this link: https://codex.wordpress.org/Function_Reference/wp_login_form

If you use <?php wp_login_form( $args ); ?> in the arguments array just make remember from false to true

Like the example: 'remember' => true,

Note that the default value is true.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.