Home

function zg_post_buttons()
{
global $post_ID, $temp_ID;

$uploading_iframe_ID = (int) (0 == $post_ID ? $temp_ID : $post_ID);

$generic_title = ‘Upload/Insert’;

$media_upload_iframe_src = “media-upload.php?post_id=$uploading_iframe_ID”;
$media_title = ‘Add Media’;
$media_button = ‘' . $media_title . '‘;

$video_upload_iframe_src = apply_filters(‘video_upload_iframe_src’, “$media_upload_iframe_src&type=video”);
$video_title = ‘Add Video’;
$video_button = ‘' . $video_title . '‘;

$audio_upload_iframe_src = apply_filters(‘audio_upload_iframe_src’, “$media_upload_iframe_src&type=audio”);
$audio_title = ‘Add Audio’;
$audio_button = ‘' . $audio_title . '‘;

$image_upload_iframe_src = apply_filters(‘image_upload_iframe_src’, “$media_upload_iframe_src&type=image”);
$image_title = ‘Add an Image’;
$image_button = ‘' . $image_title . '‘;

return $image_title . ‘:’ . $image_button;
}

add_action(‘media_buttons_context’,’zg_post_buttons’);

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s