WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WP Widget Cache] Roles & Capabilities options... (5 posts)

  1. webmaestro
    Member
    Posted 5 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)?

  2. AndrewZhang
    Member
    Posted 5 years ago #

    Hi,

    Actually the difference is based on User Level, or more clearly $current_user->wp_user_level.

    Regards,
    Andrew

  3. webmaestro
    Member
    Posted 5 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?

  4. AndrewZhang
    Member
    Posted 5 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

  5. webmaestro
    Member
    Posted 5 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'). ;-)

Topic Closed

This topic has been closed to new replies.

About this Topic