描述
Easily allows you to display different content to your visitors that are logged in than those that are logged out via shortcode. Tested in templates, pages, posts and text widgets. Create a personalized experience for your users that are logged in and your visitors that are logged out. This plugin might be useful for inbound marketers.
Available on GitHub: https://github.com/reedwf/user-status-shortcode
Usage Example
-
[userloggedin]content[/userloggedin] //returns content only to logged in users
-
[userloggedout]content[/userloggedout] //returns content only to logged out users
Release Notes
0.1.1
- Tested up to 4.4.1
0.1
- Initial Release
安装
- Upload
plugin-name.php
to the/wp-content/plugins/
directory - 通过WordPress的的“Plugins”菜单激活插件
- Place the shortcode in your templates, pages, posts and text widgets