WordPress.org

Forums

Comment Guestbook
[resolved] Remove/Hide about guestbook page tab in admin menu (4 posts)

  1. Frenkie
    Member
    Posted 11 months ago #

    I want my client to manage the comments theirselves but i don't want them to see the 'about guestbook' tab in the wp admin backend. How can i hide or remove this about guestbook link?

    Hope to get a solution, thanks!

    https://wordpress.org/plugins/comment-guestbook/

  2. mibuthu
    Member
    Plugin Author

    Posted 10 months ago #

    There is no option included to change this. But if you require this you can change the code directly.

    Required changes in actual version 0.6.3:

    pluginfolder/admin/admin.php line 35 change:
    $page = add_submenu_page('edit-comments.php', 'About Comment Guestbook', 'About Guestbook', 'edit_posts', 'cgb_admin_about', array(&$this, 'show_about_page'));
    to:
    $page = add_submenu_page('edit-comments.php', 'About Comment Guestbook', 'About Guestbook', 'manage_options', 'cgb_admin_about', array(&$this, 'show_about_page'));

    pluginfolder/admin/include/about.php line 26 change:
    if(!current_user_can('edit_posts')) {
    to:
    if(!current_user_can('manage_options')) {

  3. Frenkie
    Member
    Posted 10 months ago #

    Gffv cggbv

  4. mibuthu
    Member
    Plugin Author

    Posted 10 months ago #

    ???

Reply

You must log in to post.

About this Plugin

About this Topic