WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 4767 | $tabs = array( |
| 4768 | // handler action suffix => tab label |
| 4769 | 'type' => '', |
| 4770 | 'type_url' => '', |
| 4771 | 'gallery' => '', |
| 4772 | 'library' => '', |
| 4773 | ); |
| 4774 | |
| 4775 | /** This filter is documented in wp-admin/includes/media.php */ |
| 4776 | $tabs = apply_filters( 'media_upload_tabs', $tabs ); |
| 4777 | unset( $tabs['type'], $tabs['type_url'], $tabs['gallery'], $tabs['library'] ); |
| 4778 | |
| 4779 | $props = array( |
| 4780 | 'link' => get_option( 'image_default_link_type' ), // DB default is 'file'. |
| 4781 | 'align' => get_option( 'image_default_align' ), // Empty default. |
| 4782 | 'size' => get_option( 'image_default_size' ), // Empty default. |
| 4783 | ); |
| 4784 | |
| 4785 | $exts = array_merge( wp_get_audio_extensions(), wp_get_video_extensions() ); |