跳到内容

MHT Entry Confirm

v1.1.4

maid-h · 2026年3月6日 上架

Lightweight WordPress plugin to restrict content behind a confirmation modal — no tracking, no ads, privacy-friendly.

正在使用
20+
评分
暂无
累计下载
979
最近更新
2026年8月14日
需要 WordPress 6.0+已测试到 7.1.5PHP 8.2+

贡献者

截图

Confirmation modal (clean UI example)
Confirmation modal (clean UI example)
Confirmation modal (alternative styles)
Confirmation modal (alternative styles)
Example with logo customization
Example with logo customization
Example with checkbox / age confirmation
Example with checkbox / age confirmation
Settings screen-1
Settings screen-1
Settings screen-2
Settings screen-2
Settings screen-3
Settings screen-3

MHT Entry Confirm adds a confirmation gate and content restriction modal to your WordPress site. Before visitors can view protected pages, a full-screen confirmation modal appears — content is revealed only after the visitor explicitly confirms they meet the required conditions.

Designed for sites that need simple, privacy-friendly access control without the overhead of complex membership plugins.

Common use cases:

– Age verification for adult content, alcohol, tobacco, or gambling-related sites
– Content warnings for mature themes, violence, or graphic media
– Regional or legal access restrictions (e.g. country-specific compliance)
– Age-gated product pages for games, movies, or media with age ratings

Why choose MHT Entry Confirm?

– No personal data collected — fully GDPR-friendly
– No tracking, no ads, no upsells
– Free and open-source (GPL-2.0)
– Lightweight — minimal impact on page speed

Frontend-First Architecture

MHT Entry Confirm is designed with a frontend-first architecture.

The confirmation gate runs entirely in the browser using JavaScript and cookies.
After the page is loaded, the modal logic works independently from the WordPress backend.

– No AJAX requests to the server
– No PHP processing during confirmation
– No database interaction for visitor validation

All confirmation logic runs on the client side.

Features

– Blocking confirmation modal
Displays a full-page modal before protected content is shown.

– Cookie-based access memory
Remembers confirmed visitors for a configurable number of days, or for the current browser session only.

– Customizable appearance
Adjust logo image, title color, modal title, description text, button color, backdrop color and opacity to match your site design.

– Safe redirect for restricted visitors
Redirect visitors who do not confirm to a specified external URL.

– Flexible button settings
Customize confirmation and decline button labels, and optionally swap their positions.

– Exclusion rules
Disable the confirmation modal on specific posts, categories, or tags by ID.

– Cookie flag control
Change the cookie flag value to invalidate existing cookies and force re-confirmation for all visitors.

– Test mode
Preview and adjust the modal without saving cookies — useful for development and design tuning.

For Developers

MHT Entry Confirm dispatches a custom JavaScript event after a visitor successfully passes the confirmation step, allowing you to trigger additional logic.

The event name is stable within the same major version.

<script>
    document.addEventListener("mhtentryconfirm_passed", function() {
        // Custom logic after confirmation is passed
    });
</script>

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums