webmaestro
Member
Posted 3 years ago #
The WP Widget Cache Changelog indicates:
Some widgets output different content to different visitors, like Administrator/Subscriber/Editor/Author, for more information, read this
Could you indicate what the different visitors might expect to see based on their User Role/Capabilities (that link just goes to the WordPress Codex for Roles & Capabilities)?
AndrewZhang
Member
Posted 3 years ago #
Hi,
Actually the difference is based on User Level, or more clearly $current_user->wp_user_level.
Regards,
Andrew
webmaestro
Member
Posted 3 years ago #
Sorry... My question wasn't clear:
Does WP Widget Cache behave differently depending on the User Level? For example, does it 'hide' options for Editor or Author, that it displays for Administrator?
AndrewZhang
Member
Posted 3 years ago #
Hi,
For example, if there's 2 levels, then there should be 2 cache files, the widget cache plugin will just use the UserLevel as a key to get the right cache file.
As to what would output, that depends on the widget itself.
Regards,
Andrew
webmaestro
Member
Posted 3 years ago #
OK... I was hoping that you could hide the WP-Widget cache options in the widgets themselves, for non Admin (or in the case of WordPressMU non-Site Admin) users... That way, the Admin/Site Admin could set the caching options, and not worry about lower-level users monkeying around with the settings ('helping'). ;-)