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

Age Gate Lite

描述

If your content or products are about cannabis, alcohol, gambling or other adult content.

Age Gate Lite makes it easier then ever to configure and style an age restriction pop up to protect younger audience.

It is designed to be user friendly, simple lightweight and only requires users to confirm their age ( Yes / No ).

This plugin is absolutely, 100% free.

Success message section included can be used for Email / Newsletter Opt-in or Promotional messages.

Devs 👨‍💻

Avaliable JS Event Listeners – agl_passed & agl_failed.

<script>
    document.addEventListener("agl_passed", function() {
        // Insert yor code for Age Gate Passed ;
    });

    document.addEventListener("agl_failed", function() {
        // Insert yor code for Age Gate Failed');
    });
</script>

屏幕截图

  • Front-end Display
  • AGL Settings

安装

  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Configure the plugin

常见问题

Where are AGL settings?

You can find Age Gate Lite menu item in Admin area

AGL CSS look weird

We have kept everything lightweight. Your Parent theme is in-charge of how font and their sizes etc.. You can override with custom CSS.

评价

2023年2月3日
Works fine! Just can't find where can I translate the "continue to site" string
2022年11月15日
What a fantastic little age gate plugin. I use it for an online liquor shop. Easy to set up, not a lot of configuration capabilities, but it does what it needs to. Like the redirect if user ticks NO.
阅读所有5条评价

贡献者及开发者

“Age Gate Lite” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Age Gate Lite”翻译成您的语言。

对开发感兴趣吗?

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

更新日志

0.0.7

  • Fixed Plugin files loading hook

0.0.6

  • Added Custom Event Listeners

0.0.5

  • Added Custom Yes / No button labels support

0.0.4

  • Fixed Main Title field issue

0.0.3

  • Fixed Broken XML issues

0.0.2

  • AMP Support

0.0.1

  • Initial release