Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Pär Thernström

    (@eskapism)

    Yes,

    a snippet like this in your functions.php-file should do it:

    
    /**
     * Change capability required to view main simple history page.
     * Default capability is "edit_pages". Change to for example "manage options"
     * to only allow admins to view the history log.
     */
    add_filter("simple_history/view_history_capability", function($capability) {
        $capability = "manage_options";
        return $capability;
    });
    

    Check out the examples file here for more examples on what you can do:

    https://github.com/bonny/WordPress-Simple-History/blob/master/examples/examples.php

    Thread Starter aggk

    (@aggk)

    Thank you, that worked perfectly!

    Does this plugin add anything that could slow down load time of the front end site ?

    Plugin Author Pär Thernström

    (@eskapism)

    Nothing that I know of or have noticed myself. As with all plugins, it must load some files, but it does not query database or such on the front end.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Only Administrator’ is closed to new replies.