Disable History/Revisions Page

I have enabled the Wiki on my website and would like to disable the History tab so that visitors and users can not see the revisions. How would I go about doing that?

  • DavidM

    Hi mst2002,

    There's not an option in the interface of that as we haven't received any requests to that effect. You'd have to edit the plugin's core code, not something we'd recommend, as updates would overwrite your edits.

    I took a quick look at the plugin code though, and noticed on line 960 of wiki-include.php you could change it to the following:

    if (current_user_can('manage_options')) {
    $tabs .= '<li class="'.join(' ', $classes['history']).'" ><a href="'.get_permalink().$seperator.'action=history" >' . __('History', $this->translation_domain) . '</a></li>';

    That would restrict that tab to the Admin. If that seems confusing, you might want to seek a developer's assistance to make the change.


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.