[ XREF Home ] [ Index ]

PHP Cross Reference of WordPress Trunk

Provided by Yoast

title

Body

[close]

/wp-admin/includes/ -> media.php (summary)

WordPress Administration Media API.

File Size: 2337 lines (76 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 46 functions

  media_upload_tabs()
  update_gallery_tab()
  the_media_upload_tabs()
  get_image_send_to_editor()
  image_add_caption()
  media_send_to_editor()
  media_handle_upload()
  media_handle_sideload()
  wp_iframe()
  media_buttons()
  _media_button()
  get_upload_iframe_src()
  media_upload_form_handler()
  media_upload_image()
  media_sideload_image()
  media_upload_audio()
  media_upload_video()
  media_upload_file()
  media_upload_gallery()
  media_upload_library()
  image_align_input_fields()
  image_size_input_fields()
  image_link_input_fields()
  image_attachment_fields_to_edit()
  media_single_attachment_fields_to_edit()
  media_post_single_attachment_fields_to_edit()
  image_attachment_fields_to_save()
  image_media_send_to_editor()
  get_attachment_fields_to_edit()
  get_media_items()
  get_media_item()
  media_upload_header()
  media_upload_form()
  media_upload_type_form()
  media_upload_type_url_form()
  media_upload_gallery_form()
  media_upload_library_form()
  type_url_form_image()
  type_url_form_audio()
  type_url_form_video()
  type_url_form_file()
  _insert_into_post_button()
  media_upload_use_flash()
  media_upload_flash_bypass()
  media_upload_html_bypass()
  media_upload_bypass_url()

Functions
Functions that are not part of a class:

media_upload_tabs()   X-Ref
{@internal Missing Short Description}}

return: unknown

update_gallery_tab($tabs)   X-Ref
{@internal Missing Short Description}}

param: unknown_type $tabs
return: unknown

the_media_upload_tabs()   X-Ref
{@internal Missing Short Description}}


get_image_send_to_editor($id, $caption, $title, $align, $url='', $rel = false, $size='medium', $alt = '')   X-Ref
{@internal Missing Short Description}}

param: unknown_type $id
param: unknown_type $alt
param: unknown_type $title
param: unknown_type $align
param: unknown_type $url
param: unknown_type $rel
param: unknown_type $size
return: unknown

image_add_caption( $html, $id, $caption, $title, $align, $url, $size, $alt = '' )   X-Ref
{@internal Missing Short Description}}

param: unknown_type $html
param: unknown_type $id
param: unknown_type $alt
param: unknown_type $title
param: unknown_type $align
param: unknown_type $url
param: unknown_type $size
return: unknown

media_send_to_editor($html)   X-Ref
{@internal Missing Short Description}}

param: unknown_type $html

media_handle_upload($file_id, $post_id, $post_data = array()   X-Ref
{@internal Missing Short Description}}

This handles the file upload POST itself, creating the attachment post.

param: string $file_id Index into the {@link $_FILES} array of the upload
param: int $post_id The post ID the media is associated with
param: array $post_data allows you to overwrite some of the attachment
param: array $overrides allows you to override the {@link wp_handle_upload()} behavior
return: int the ID of the attachment

media_handle_sideload($file_array, $post_id, $desc = null, $post_data = array()   X-Ref
This handles a sideloaded file in the same way as an uploaded file is handled by {@link media_handle_upload()}

param: array $file_array Array similar to a {@link $_FILES} upload array
param: int $post_id The post ID the media is associated with
param: string $desc Description of the sideloaded file
param: array $post_data allows you to overwrite some of the attachment
return: int|object The ID of the attachment or a WP_Error on failure

wp_iframe($content_func )   X-Ref
{@internal Missing Short Description}}

Wrap iframe content (produced by $content_func) in a doctype, html head/body
etc any additional function args will be passed to content_func.

param: unknown_type $content_func

media_buttons()   X-Ref
{@internal Missing Short Description}}


_media_button($title, $icon, $type)   X-Ref
No description

get_upload_iframe_src($type)   X-Ref
No description

media_upload_form_handler()   X-Ref
{@internal Missing Short Description}}

return: unknown

media_upload_image()   X-Ref
{@internal Missing Short Description}}

return: unknown

media_sideload_image($file, $post_id, $desc = null)   X-Ref
Download an image from the specified URL and attach it to a post.

param: string $file The URL of the image to download
param: int $post_id The post ID the media is to be associated with
param: string $desc Optional. Description of the image
return: string|WP_Error Populated HTML img tag on success

media_upload_audio()   X-Ref
{@internal Missing Short Description}}

return: unknown

media_upload_video()   X-Ref
{@internal Missing Short Description}}

return: unknown

media_upload_file()   X-Ref
{@internal Missing Short Description}}

return: unknown

media_upload_gallery()   X-Ref
{@internal Missing Short Description}}

return: unknown

media_upload_library()   X-Ref
{@internal Missing Short Description}}

return: unknown

image_align_input_fields( $post, $checked = '' )   X-Ref
Retrieve HTML for the image alignment radio buttons with the specified one checked.

param: unknown_type $post
param: unknown_type $checked
return: unknown

image_size_input_fields( $post, $check = '' )   X-Ref
Retrieve HTML for the size radio buttons with the specified one checked.

param: unknown_type $post
param: unknown_type $check
return: unknown

image_link_input_fields($post, $url_type = '')   X-Ref
Retrieve HTML for the Link URL buttons with the default link type as specified.

param: unknown_type $post
param: unknown_type $url_type
return: unknown

image_attachment_fields_to_edit($form_fields, $post)   X-Ref
{@internal Missing Short Description}}

param: unknown_type $form_fields
param: unknown_type $post
return: unknown

media_single_attachment_fields_to_edit( $form_fields, $post )   X-Ref
{@internal Missing Short Description}}

param: unknown_type $form_fields
param: unknown_type $post
return: unknown

media_post_single_attachment_fields_to_edit( $form_fields, $post )   X-Ref
{@internal Missing Short Description}}

param: unknown_type $form_fields
param: unknown_type $post
return: unknown

image_attachment_fields_to_save($post, $attachment)   X-Ref
{@internal Missing Short Description}}

param: unknown_type $post
param: unknown_type $attachment
return: unknown

image_media_send_to_editor($html, $attachment_id, $attachment)   X-Ref
{@internal Missing Short Description}}

param: unknown_type $html
param: unknown_type $attachment_id
param: unknown_type $attachment
return: unknown

get_attachment_fields_to_edit($post, $errors = null)   X-Ref
{@internal Missing Short Description}}

param: unknown_type $post
param: unknown_type $errors
return: unknown

get_media_items( $post_id, $errors )   X-Ref
Retrieve HTML for media items of post gallery.

The HTML markup retrieved will be created for the progress of SWF Upload
component. Will also create link for showing and hiding the form to modify
the image attachment.

param: int $post_id Optional. Post ID.
param: array $errors Errors for attachment, if any.
return: string

get_media_item( $attachment_id, $args = null )   X-Ref
Retrieve HTML form for modifying the image attachment.

param: int $attachment_id Attachment ID for modification.
param: string|array $args Optional. Override defaults.
return: string HTML form for attachment.

media_upload_header()   X-Ref
{@internal Missing Short Description}}


media_upload_form( $errors = null )   X-Ref
{@internal Missing Short Description}}

param: unknown_type $errors

media_upload_type_form($type = 'file', $errors = null, $id = null)   X-Ref
{@internal Missing Short Description}}

param: unknown_type $type
param: unknown_type $errors
param: unknown_type $id

media_upload_type_url_form($type = 'file', $errors = null, $id = null)   X-Ref
{@internal Missing Short Description}}

param: unknown_type $type
param: unknown_type $errors
param: unknown_type $id

media_upload_gallery_form($errors)   X-Ref
{@internal Missing Short Description}}

param: unknown_type $errors

media_upload_library_form($errors)   X-Ref
{@internal Missing Short Description}}

param: unknown_type $errors

type_url_form_image()   X-Ref
{@internal Missing Short Description}}

return: unknown

type_url_form_audio()   X-Ref
{@internal Missing Short Description}}

return: unknown

type_url_form_video()   X-Ref
{@internal Missing Short Description}}

return: unknown

type_url_form_file()   X-Ref
{@internal Missing Short Description}}

return: unknown

_insert_into_post_button($type)   X-Ref
No description

media_upload_use_flash($flash)   X-Ref
{@internal Missing Short Description}}

Support a GET parameter for disabling the flash uploader.

param: unknown_type $flash
return: unknown

media_upload_flash_bypass()   X-Ref
{@internal Missing Short Description}}


media_upload_html_bypass($flash = true)   X-Ref
{@internal Missing Short Description}}


media_upload_bypass_url($url)   X-Ref
{@internal Missing Short Description}}

Make sure the GET parameter sticks when we submit a form.

param: unknown_type $url
return: unknown



Generated: Wed Jun 1 08:30:02 2011 Cross-referenced by PHPXref 0.7
Provided by Yoast and awesome WordPress Hosting