WordPress.org

Ready to get started?Download WordPress

Forums

Simple History
can I make the plugin visible for subscribers or editor? (4 posts)

  1. lindebjerg
    Member
    Posted 1 year ago #

    It works fine, but I need access to the plugin for a person only to see the history. The user must not be able to change anything, just see the report or history... is this possible?

    http://wordpress.org/extend/plugins/simple-history/

  2. Pär Thernström
    Member
    Plugin Author

    Posted 1 year ago #

    In the latest version you have 2 filters available
    simple_history_show_on_dashboard
    and
    simple_history_show_as_page

    If you know how to work with filters you could use these filters to show the history for a specific user. In the current version the user must have edit_pages capability, but this will be possibly to also change with filters in an upcoming update.

  3. gonix
    Member
    Posted 1 year ago #

    The page is only visible to editors and admins. What if I want to show it to my subscriber as well?

  4. Pär Thernström
    Member
    Plugin Author

    Posted 1 year ago #

    Try this in your functions.php-file

    add_filter("simple_history_view_history_capability", function() {
        return "edit_posts";
    });

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic