WordPress.org

China 简体中文

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

Plugin Directory

Force User Login

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

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

Force User Login

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

描述

This is a very small plugin that forces users to login before viewing any content. This is done by checking if the user is logged in, and if not, redirecting them to the login page. Users attempting to view blog content via RSS are also authenticated via HTTP Auth.

Modification: use get_site_url() to redirect to the login page properly when WordPress is located in a subdirectory.

安装

  1. Upload force-login.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

常见问题

Can I change where the user is redirected after logging in?

Yes! A variable called $redirect_to (line 33) is currently set to redirect the user to the page they were trying to access. If you changed that line from

$redirect_to = $_SERVER['REQUEST_URI'];

to

$redirect_to = '/';

it would redirect the user to the home page.

评价

此插件暂无评价。

贡献者及开发者

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

贡献者
  • smatric

帮助将「Force User Login」翻译成简体中文。

对开发感兴趣吗?

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

更新日志

1.0.2

  • Tested with WordPress 4.3
  • Updated meta description
  • A screenshot added

额外信息

  • 版本 1.0
  • 最后更新:10 年前
  • 活跃安装数量 50+
  • WordPress 版本 2.0.2 或更高版本
  • 已测试的最高版本为 4.3.34
  • 语言
    English (US)
  • 标签
    force user loginloginpasswordprivacy
  • 高级视图

评级

尚未提交反馈。

添加我的评价

查看全部评论

贡献者

  • smatric

支持

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

查看支持论坛

捐助

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

捐助此插件

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • 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
代码如诗