| 开发者 |
gbecker1983
gwizit |
|---|---|
| 更新时间 | 2026年10月2日 11:45 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[gwiz_it_content_locker area="AreaName"]...[/gwiz_it_content_locker] to gate content inline without replacing the entire page.div.exampleclass) until the visitor signs up.g-wiz-it-content-locker folder to the /wp-content/plugins/ directory.Click the Help button at the top of the Restricted Areas page. It opens a detailed guide that explains every button and setting with a sample of each button alongside the explanation.
Click the ⚙️ Settings button on any restricted area card. The shortcode is displayed at the top with a Copy button.
Because you are logged in. Logged-in users always receive the unlocked content without a form — this is by design so site editors and administrators are never gated on their own site. Test as a visitor: log out, or open the page in a private/incognito browser window. To preview the gate while logged in, enable Debug Mode in the area's Settings modal.
The plugin uses Windows-style deduplication. The first area keeps the base name, the second gets a 2 suffix, the third gets 3, etc. The exact shortcode is always shown in the area's settings.
Yes. The plugin pre-scans Elementor (_elementor_data), Divi (_et_pb_post_content), and Beaver Builder (_fl_builder_data) content for shortcodes and hide selector class names.
In the area's Settings modal, enter CSS selectors in the Hide by Selector textarea (one per line). For example: div.exampleclass or span.highlight. Elements matching these selectors will be hidden until the visitor signs up.
Each shortcode instance on the page renders independently. If you need the form on only one instance, place the shortcode once and use CSS selectors to lock other elements on the page.
No. The plugin pre-scans the current page's content (including Elementor/Divi/Beaver Builder data) and only loads frontend assets when the shortcode is detected or when hide selector class names are found in the page content.
Click the 📋 Clone button on any restricted area card header. A popup will ask whether to include contacts (defaults to No). The clone is created immediately as a disabled copy with a unique name suffix (e.g. "My Area-1") and a different color.
Click the 📦 Export button on any area card to download a ZIP backup file. To import, click the 📥 Import Settings button on an existing area (to overwrite it) or the Import Area button at the top of the page (to create a new area from the backup). A popup will ask whether to include contacts. Backups are forward-compatible: if you import a backup from an older plugin version, missing settings will use their defaults.
Yes. When cloning or exporting, check the "Include contacts/users?" option. When importing, contacts from the backup file will be added to the target area. Note that this creates new signup records (contacts are not de-duplicated by email).
Use the gwiz_it_content_locker_load_frontend filter (see Hooks section below).
Yes. The CSV includes a UTF-8 BOM (Byte Order Mark) at the start of the file, which tells Excel to use UTF-8 encoding. This ensures non-English characters (accented letters, CJK, etc.) display correctly.
Confirmation Email: {{confirm_link}}, {{site_name}}, {{email}}, {{area_name}}, {{source_url}}
Congratulations Email: {{site_name}}, {{email}}, {{area_name}}, {{source_url}}
Popup Template: {{form}}, {{already_signed_up_link}}, {{site_name}}, {{area_name}}, {{file_name}}
The popup template includes an {{already_signed_up_link}} placeholder. When clicked, it shows an email-only verification form. If the email exists as a confirmed signup for that area, the visitor's cookie is set and they gain access. If not found, a generic message is shown (to prevent email enumeration).
{{close_label}} placeholder).not_signedup_template database column (automatic migration).gwiz-it-already-signed-up class now opens the verification form instead of refreshing the page.{{already_signed_up_link}} placeholder (invalid HTML).gwiz_it_content_locker_bypass_logged_in filter for controlling the logged-in bypass.[gwiz_it_content_locker] shortcode for inline content gating with Windows-style area name deduplication.gwiz_it_content_locker_load_frontend filter for developer control over asset loading.