WordPress.org

Ready to get started?Download WordPress

Forums

Slideshow
Remove capability doesn't remove media button in edit.php (1 post)

  1. nellone
    Member
    Posted 1 year ago #

    I removed Author capability to slideshows plugin, but when i log in as author inside edit.php (articles editor), i still see the media button to insert slideshow shortcodes.

    <div id="wp-content-media-buttons" class="wp-media-buttons">
    <a href="#" class="button insert-media add_media" data-editor="content" title="Aggiungi media"><span class="wp-media-buttons-icon"></span> Aggiungi media</a>
    <!-- need to remove those 2 elements <a> and <div> -->
    <a href="#TB_inline?width=450&inlineId=insertSlideshowShortcode&width=640&height=354" class="button thickbox" title="Insert a Slideshow" style="padding-left: .4em;">
    	<img src="http://www.mysite.it/wp-content/plugins/slideshow-jquery-image-gallery/images/SlideshowPluginPostType/adminIcon.png" alt="Insert a Slideshow" style="vertical-align: text-top;">
    	Insert Slideshow
    </a>
    <div id="insertSlideshowShortcode" style="display: none;">...</div>
    </div></div>

    is this a bug?
    is there a way to remove this button with a script in functions.php?

    thanks a lot! bye

    http://wordpress.org/extend/plugins/slideshow-jquery-image-gallery/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic