Description
Biscotti is a plugin that modifies the expiration of the logged in user cookie in WordPress to three months, six months, or one year. Because some people hate to have to keep entering their passwords.
WP-CLI Commands
As of version 2.1.0, Biscotti includes WP-CLI commands for managing a user’s logged in session cookie expiration.
biscotti get
This command returns the previously defined cookie expiration of a user.
Options
<user_id> — The ID of the user.
biscotti set
This command sets the logged in session cookie expiration of a user.
Options
<user_id> — ID of the user.
<expiration> — New expiration duration. It must be one of the following values: `'3 months'`, `'6 months'`, `'1 year'`
Note
Please remember to replace the user_id
and expiration
placeholders with the actual user ID and desired expiration duration when running either of these commands.