WP Manifestindependent plugin directory
manifest / users / wp-simple-contents-control

Simple Contents Control

A simple content visibility control plugin for WordPress

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/astanabe/wp-simple-contents-control/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A simple contents visibility control plugin for WordPress

Available shortcodes

[if-logout] contents [/if-logout]

The inner contents are displayed for logged-out users only.

[if-login] contents [/if-logout]

The inner contents are displayed for logged-in users only.

[if-user is="foo, bar"] contents [/if-user]

The inner contents are displayed for the user "foo" or "bar" only.

[if-role is="administrator, editor"] contents [/if-role]

The inner contents are displayed for the users which belongs to "administrator" or "editor" role only.

[if-group is="group-a, group-b"] contents [/if-group]

The inner contents are displayed for the users which belongs to BuddyPress group "group-a" or "group-b" only.

[search-form]

Output search form.