-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathreadme.txt
83 lines (46 loc) · 2.5 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
=== Biscotti ===
Contributors: boogah, webaware
Donate link: http://paypal.me/boogah
Tags: login, cookies, profile, login
Requires at least: 6.0
Tested up to: 6.2
Stable tag: 2.1.0
Requires PHP: 8.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
Biscotti makes your user's login cookie a little bit longer.
== 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.
== Installation ==
To install this plugin, drop `biscotti.php` into your site's `wp-content/plugins` directory and activate it.
== Frequently Asked Questions ==
= How do I work this thing? =
Once the plugin has been activated, a new option will be available in the WordPress dashboard under "User -> Profile" called "Login Cookie Expiration". There, you can select the cookie expiration date of 3 months, 6 months, or 1 year on a per-account basis.
After updating this setting, you *will* need to log out and back into WordPress for your new cookie expiration value to take effect.
Enjoy your long cookie!
== Changelog ==
= 2.1.0 =
Added WP-CLI command. Bumped required PHP version to 8.0.
= 2.0.3 =
@webaware has decided to help make this code less awful and submitted a pull request on GitHub. This release implements their improvements.
= 2.0.2 =
Sanitize. Not escape. Ack!
= 2.0.1 =
Forgot to escape the lone `$_POST` in my code. Feel dumb about it. Fixed now tho.
= 2.0.0 =
Rewrite! Now, instead of forcing *everyone* to use the same login cookie expiration, Biscotti allows users to individually select their login cookie expiration on their profile page.
= 1.0.0 =
Initial release. Simple plugin that forced login cookie expiration for every user to 1 year.