Support » Plugin: Simple History » Access Restriction to the User Roles

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


    You can use a filter, something like this:

     * 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;
Viewing 1 replies (of 1 total)
  • The topic ‘Access Restriction to the User Roles’ is closed to new replies.