WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

Biscotti

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Biscotti

作者:Jason Cosper
下载
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

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.

安装

To install this plugin, drop biscotti.php into your site’s wp-content/plugins directory and activate it.

常见问题

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!

评价

Thank you so much!!

protoo 2023 年 10 月 7 日
This plugin really helped relieve me of my “WordPress keeps logging me out” frustration, I tried other options that promise the same features before finding this gem, and this is the BEST, SIMPLEST one! This plugin is of HUGE help and is CRUCIAL to my website, I don’t know what I would’ve done without it! I appreciate you SO much, plugin author! Keep up the great work, I wish you the absolute best!
阅读所有1条评价

贡献者及开发者

「Biscotti」是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • Jason Cosper
  • webaware

帮助将「Biscotti」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

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.

额外信息

  • 版本 2.1.0
  • 最后更新:1 年前
  • 活跃安装数量 20+
  • WordPress 版本 6.0 或更高版本
  • 已测试的最高版本为 6.5.5
  • PHP 版本 8.0 或更高版本
  • 语言
    English (US)
  • 标签
    cookiesloginprofile
  • 高级视图

评级

5 星(最高 5 星)。
  • 1 条 5 星评价 5 星 1
  • 0 条 4 星评价 4 星 0
  • 0 条 3 星评价 3 星 0
  • 0 条 2 星评价 2 星 0
  • 0 条 1 星评价 1 星 0

添加我的评价

查看全部评论

贡献者

  • Jason Cosper
  • webaware

支持

有话要说吗?是否需要帮助?

查看支持论坛

捐助

您愿意支持这个插件的发展吗?

捐助此插件

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • 未来五分计划
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • Visit our TikTok account
  • 访问我们的 YouTube 频道
  • Visit our Tumblr account
代码如诗