Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: media_upload_tabs

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1773      // to ensure plugins will work. We will then unset those tabs.
1774      $tabs = array(
1775           // handler action suffix => tab label
1776           'type'     => '',
1777           'type_url' => '',
1778           'gallery'  => '',
1779           'library'  => '',
1780      );
1781
1782      $tabs = apply_filters( 'media_upload_tabs', $tabs );
1783      unset( $tabs['type'], $tabs['type_url'], $tabs['gallery'], $tabs['library'] );
1784
1785      $props = array(
1786           'link'  => get_option( 'image_default_link_type' ), // db default is 'file'
1787           'align' => get_option( 'image_default_align' ), // empty default
1788           'size'  => get_option( 'image_default_size' ),  // empty default
1789      );
1790
1791      $settings = array(