Need a How-To: Adding pages to 2.5 Media Manager (4 posts)

  1. belinep
    Posted 8 years ago #

    Now, I am admittedly a new plug-in author. But I have learned quite a bit over the past few weeks. I wrote a nice simple plug-in that works WONDERFULLY, but now I am trying to add functionality. I just got 2.5 up and running, and I want to add pages to the POST/PAGE Media Uploader/Manager... stuffs...

    I began writing something last week, but I was going to hack a GreyBox script to get it working. Now that I have 2.5, it's at my fingertips, but I am dumbfounded as to how to do it.

    I started hacking a Viddler plug-in apart and got a little ways:

    function add_sWPmedia($array) {
    	$array['smugwptab'] = 'Your SmugMug';
    	return $array;
    if (function_exists('add_action')) {

    Adds a tab to the Media Upload screen, but I haven't a clue as to how to send output... Anyone have any clue?

    There needs/should be a How-To for this out there. And if there isn't, I am going to compile any advice I receive here into a how-to. It's a great little feature, but there is no documentation about it anywhere...

  2. belinep
    Posted 8 years ago #

    Does no one know whats going on? Or how this works.

  3. splotch
    Posted 8 years ago #

    I would love to see a how-to as well. I know the functionality is all there, it is just a pain trying to figure out how to make it work. Having just begun to add this functionality to a plugin I'm developing, I could really use a tutorial or something to hint at how the whole thing works.

    Right now I'm trying to parse through some plugins that add media buttons to see how they work, but it is a tedious process of trial and error.

  4. splotch
    Posted 8 years ago #

    I'm in the process of putting together a series of tutorials on the WordPress media API. It took a lot of digging around in the code before I was able to find everything I needed to put together a plugin I was working on. Hopefully these articles will save other plugin developers some time.

    WordPress Media Plugin Tutorial 1: Custom media tabs

Topic Closed

This topic has been closed to new replies.

About this Topic