Title: Creating media handler default code
Last modified: August 19, 2016

---

# Creating media handler default code

 *  [viennamex](https://wordpress.org/support/users/viennamex/)
 * (@viennamex)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/creating-media-handler-default-code/)
 * I have an Author whose role permissions I have increased using the specs in the
   wp_options table at the wp_user_roles settings.
 * I have several plugins I use as Administrator to drop shortcode into various 
   pages to play FLV videos and to install MP3 players.
 * But using these media player codes is just too complicated for my Author to use.
   So, I would like to modify the functions that dictate how the wordpress install
   treats inclusion of an audio MP3 file or various video files such as wmv, swf,
   flv for my Author.
 * When this Author creates or edits a post I would like him to be able to click
   on, for instance, an mp3 audio file in the Media gallery and when he clicks ‘
   Insert into Post’ it automatically gets wrapped in the plugin MP3 player already
   activated. So, instead of an URL wrapping the MP3 in the html I would like the
   MP3 file with the MP3 player embedded around it so that the player is visually
   installed on these posts.
 * It appears that the tinymce editor has a better function for wrapping media–if
   I use that instead of the default WordPress Insert Video or Insert Audio links–
   I would like to extend that so that my Author can just use that Icon link and
   select the media file he wants to install.
 * Can someone give me some tips on extending the functionality so that I can create
   a “failsafe” Add Media button that wraps the selected media file in its appropriate
   player code?
 * I haven’t seen this in the plugins working for 2.8.4 to 2.8.6.
 * Thanks for all relevant and useful answers!

The topic ‘Creating media handler default code’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [viennamex](https://wordpress.org/support/users/viennamex/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/creating-media-handler-default-code/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
