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 ?
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.