WordPress.org

Ready to get started?Download WordPress

Forums

Chat
[resolved] Removing "insert chat" icon in visual editor (2 posts)

  1. webabsurdism
    Member
    Posted 2 years ago #

    hi there

    i'm running a multisite and would like the insert chat icon to show up only for admin.

    any idea how i can do that?

    tia

    http://wordpress.org/extend/plugins/chat/

  2. DavidM
    Member
    Posted 2 years ago #

    Hi Tia,

    You'd have to edit the plugin code for that and to help out a bit, if you have a look at line 359 of chat.php you'll see a conditional check for whether the current user can edit posts, along with the addition of a filter to add in the button.

    You can edit that to include a check using is_admin().

    Hope that helps!

    -David

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags