Linux 软件免费装
Banner图

Restrict Anonymous Access

开发者 cleuenberg
更新时间 2023年9月11日 16:19
捐献地址: 去捐款
WordPress版本: 6.3.1
版权: GPLv3
版权网址: 版权信息

标签

access-control capabilities restrict content user access

下载

1.2 1.0.3 1.1

详情介绍:

This plugin helps you to hide certain parts of your content like a paragraph or an image etc. to logged-out users or users of any other role with just a simple shortcode. Customize the shortcode in order to display a special note to your users, apply custom CSS classes for your own design or hide the restricted parts completely. Features: https://youtu.be/n3M4C4aktuU

安装:

  1. Upload the plugin files to the /wp-content/plugins/restrict-anonymous-access directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress.
  3. Use the shortcode [member][/member] in any post, page or custom post type in order to hide content from anonymous users. Important: Please use "Classic" block element if you are using Gutenberg.
  4. Optional parameters are showinfo="0" to hide the info message, infotext="Your custom info for anons." and class="my-custom-css-class" for adding CSS class to the info box.
  5. Use parameter role="[subscriber|contributor|author|editor|admin|your-custom-role]", e.g. role="editor" to hide content from users below editor capabilities.

屏幕截图:

  • Front-end view with anonymous user, content is hidden and info message shown instead.
  • Front-end view with logged-in user, content is shown.

更新日志:

1.2 1.1 1.0.3 1.0.2