Title: Remove capability doesn&#039;t remove media button in edit.php
Last modified: August 21, 2016

---

# Remove capability doesn't remove media button in edit.php

 *  [nellone](https://wordpress.org/support/users/nellone/)
 * (@nellone)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/remove-capability-doesnt-remove-media-button-in-editphp/)
 * 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/](http://wordpress.org/extend/plugins/slideshow-jquery-image-gallery/)

The topic ‘Remove capability doesn't remove media button in edit.php’ is closed 
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/slideshow-jquery-image-gallery_d3d2de.
   svg)
 * [Slideshow](https://wordpress.org/plugins/slideshow-jquery-image-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/slideshow-jquery-image-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/slideshow-jquery-image-gallery/reviews/)

## Tags

 * [capabilities](https://wordpress.org/support/topic-tag/capabilities/)
 * [slideshow](https://wordpress.org/support/topic-tag/slideshow/)

 * 0 replies
 * 1 participant
 * Last reply from: [nellone](https://wordpress.org/support/users/nellone/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/remove-capability-doesnt-remove-media-button-in-editphp/)
 * Status: not resolved