跳至内容
WordPress.org

China 简体中文

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

Plugin Directory

AJO Membership

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

AJO Membership

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

描述

AJO Membership is a lightweight, secure, and straightforward plugin designed to turn your WordPress site into a basic membership portal without the bloat of massive membership plugins.

It allows you to restrict access to specific pages, posts, or entire URL paths directly from a simple settings dashboard. Non-registered users attempting to access protected content are automatically redirected to a custom link of your choosing.

The plugin also safely redirects non-administrative users away from the default WordPress dashboard (wp-admin), keeping your frontend pristine, and provides native WordPress-powered shortcodes to handle user authentication entirely on the frontend.

Features

  • Content Protection: Protect any URL or path (e.g., /premium-content/). Sub-pages are automatically protected.
  • Custom Redirects: Send unauthorized visitors to a specific landing page or your login page.
  • Dashboard Restriction: Automatically blocks non-administrators from accessing the WordPress backend dashboard, redirecting them to the homepage instead.
  • Frontend Profile Editor: Allow users to update their Name, Email, and Password directly from a frontend page.
  • Native Authentication: Uses WordPress’s core secure functions to handle logins, registrations, and password resets. No clunky third-party tables—just clean, native integration.

Included Shortcodes

Simply paste these shortcodes onto any page or post to display the respective forms:

  • [ajo_login] – Displays the standard login form. (Hides automatically if the user is already logged in).
  • [ajo_register] – Displays a straightforward registration form.
  • [ajo_password_reset] – Displays the lost password / reset request form.
  • [ajo_edit_profile] – Displays a secure frontend profile editor for logged-in users to update their name, email, and password.

屏幕截图

安装

  1. Upload the ajo-membership folder to the /wp-content/plugins/ directory, or install it via the WordPress Plugins dashboard by uploading the .zip file.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Go to Settings > AJO Membership to configure your protected URLs and custom redirect link.
  4. Go to Settings > General and ensure “Anyone can register” is checked if you plan to use the registration shortcode.
  5. Create standard WordPress pages (e.g., “Login”, “Register”, “My Profile”) and paste the provided shortcodes into the page content.

常见问题

Why is the registration form not working?

Because this plugin securely utilizes WordPress’s native registration system, you must enable registration in your main WordPress settings. Go to Settings > General and check the box next to Membership that says “Anyone can register”.

How do I protect a specific page?

Go to Settings > AJO Membership. In the “Protected URLs / Paths” box, type the path of the page you want to protect (e.g., /my-secret-page/). Enter one path per line.

Does protecting a parent page protect its child pages?

Yes! If you protect /members/, then any sub-page like /members/downloads/ or /members/videos/ will automatically be protected as well.

Can regular users access my WordPress dashboard?

No. The plugin automatically detects if a user is an Administrator or not. If a subscriber or customer tries to access /wp-admin/, they will be safely redirected back to your homepage.

评价

此插件暂无评价。

贡献者及开发者

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

贡献者
  • Ali J Online

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

对开发感兴趣吗?

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

更新日志

1.0

  • Initial release.
  • Added content protection via URL path.
  • Added shortcodes: [ajo_login], [ajo_register], [ajo_password_reset].
  • Added [ajo_edit_profile] shortcode for secure frontend profile updating.
  • Added security feature to block non-admins from accessing the WordPress dashboard.
  • Improved security nonces and user input sanitization.

额外信息

  • 版本 1.0
  • 最后更新:2 月前
  • 活跃安装数量 不到10
  • WordPress 版本 5.8 或更高版本
  • 已测试的最高版本为 7.1.1
  • PHP 版本 7.4 或更高版本
  • 语言
    English (US)
  • 标签
    loginmembershipprotect contentregistrationuser roles
  • 高级视图

评级

尚未提交反馈。

您的评价

查看全部评论

贡献者

  • Ali J Online

支持

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

查看支持论坛

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

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗
The WordPress® trademark is the intellectual property of the WordPress Foundation.