Linux 软件免费装
Banner图

RIACO Content Protector

开发者 prototipo88
更新时间 2025年12月5日 04:52
PHP版本: 7.4 及以上
WordPress版本: 6.8
版权: GPLv2 or later
版权网址: 版权信息

标签

password hide content content protection restrict content password protection

下载

1.0.0

详情介绍:

RIACO Content Protector allows you to protect any part of your WordPress content using a shortcode.\ Unlike the built-in post password protection, this plugin protects only what you wrap, not the whole post. Perfect for: Features Important: How It Works Wrap content you want to protect: [riaco_content_protector] This text will be hidden until the visitor enters the password. [/riaco_content_protector] Set the global password under: Settings > Content Protector Visitors will see a modern, styled form.\ After entering the correct password: Security Cookie We use this cookie to understand if user unlocked the content: riaco_cp_unlocked_global. Style You can style the content protector box. It has this class: .riaco-cp--container, so you can add in your style.css: .riaco-cp--container { background: #f8f9fa; padding: 20px; border: 1px solid #ddd; border-radius: 6px; } You can replace button classes using: add_filter( 'riaco_cp_button_classes', function( $classes ) { return 'button my-custom-button-class'; }); Or you can remove button classes: add_filter( 'riaco_cp_button_classes', function( $classes ) { // Remove wp-element-button return str_replace( 'wp-element-button', '', $classes ); });

安装:

  1. Upload the plugin folder to /wp-content/plugins/
  2. Activate the plugin through Plugins > Installed Plugins
  3. Go to Settings > Content Protector and configure your global password
  4. Add the shortcode to any post or page
[riaco_content_protector] This is hidden. [/riaco_content_protector]

屏幕截图:

  • Protected content example
  • Settings page with global password option

常见问题:

Are passwords hashed in the database?

= Can I protect multiple sections on the same page? =\ Yes. All instances use the same global password and unlock together. = Does this protect the entire post? =\ No — only the content wrapped in the shortcode. No, the global password is stored in plain text like WordPress page passwords for easy admin management. = Does this work with Gutenberg / block editor? =\ Yes. It works in both Classic and Block Editor.\ You can insert the shortcode inside Paragraph block or using Shortcode block.

What happens when I change the global password?

All previously unlocked content cookies are invalidated. Users must re-enter the new password.

更新日志:

1.0.0