• How can I get current cookie expiration time (Maximum time a user can be logged in)? If some plugins are modifying it, I want the updated value.

    add_filter( 'auth_cookie_expiration', 'get_current' );
    
    function get_current( $expire ) {
        // Set to our variable to access it outside
        $this->expire = $expire;
    
        return $expire;
    }

    Is this a solution? Is there any functions available to get this value?

The topic ‘How to get current cookie expiration time?’ is closed to new replies.