Viewing 4 replies - 1 through 4 (of 4 total)
  • missveronica

    (@missveronicatv)

    @fatalrhymer

    You can try to use “Additional CSS” of your Theme at WP Appearance -> Customize

    The “Remember me” checkbox can also be removed in the UM Forms Builder
    in the Login form’s right column: Show "Remember Me"?

    Plugin Support yuriinalivaiko

    (@yuriinalivaiko)

    Hello @fatalrhymer,

    You can add CSS code to the style.css file in the child theme. You can add CSS code to the field “Additional CSS” on wp-admin > Appearance > Customize > Additional CSS if your theme supports this feature.

    You also can add CSS code directly to the PHP code snippet. Try this:

    add_action( "um_after_login_fields", function() {
    ?>
    <input type="hidden" name="rememberme" value="1">
    <style type="text/css">
    .um-login .um-field.um-field-c {
    display: none !important;
    }
    </style>
    <?php
    } );

    Regards

    missveronica

    (@missveronicatv)

    @fatalrhymer

    The default WordPress behavior for logging a user out is to make
    a login session cookie that expires in 48 hours or when the browser is closed.

    If the “Remember Me” box is checked, WordPress will give you 14 days
    before forcing you to login again.

    If you want to increase the expiration, you can try adding the following
    code snippet to increase to 1 year:

    add_filter( 'auth_cookie_expiration', 'um_021121_keep_me_logged_in_for_1_year' );
    
    function um_021121_keep_me_logged_in_for_1_year( $expirein ) {
        return YEAR_IN_SECONDS;
    }

    Install by adding the code snippet to your active theme’s functions.php file
    or use the “Code Snippets” Plugin

    https://www.ads-software.com/plugins/code-snippets/

    Plugin Support andrewshu

    (@andrewshu)

    Hi @fatalrhymer

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. ??

    Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘about forcing stay signed in’ is closed to new replies.