• Hello.

    I would like the check-box “”Remember me” checked by default.
    How can I do that ?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I not sure if this can be done with a snippet, so you’ll have to modify the codebase for UM, and this means it’ll be overwritten whenever you update UM. Use the Plugin Editor in WP for editing.

    Edit this file:

    \ultimate-member\includes\core\um-actions-login.php

    Just after line 417, edit this line and change false to true:

    UM()->fields()->checkbox( ‘rememberme’, __( ‘Keep me signed in’, ‘ultimate-member’ ), false ); ?>

    Hope that helps, at least for now. This was tested on the free version only.

    • This reply was modified 3 years, 7 months ago by wbenterprises.

    @zenplay

    Never modify UM core scripts!

    You can look at this thread for a valid solution to your issue:

    https://ww.wp.xz.cn/support/topic/remember-me-checked-by-default/

    Yes, I agree, that’s probably better! Although, it does take away the option for the user to check the box.

    What’s more bothersome is that UM won’t just make it an option to turn on or off for the administrator. They claim it requires customization on the user’s end which is just a lie since I can change it by switching a boolean value in their own code.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘“Remember me” checked by default’ is closed to new replies.