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 |
|---|---|
| 1835 | // to ensure plugins will work. We will then unset those tabs. |
| 1836 | $tabs = array( |
| 1837 | // handler action suffix => tab label |
| 1838 | 'type' => '', |
| 1839 | 'type_url' => '', |
| 1840 | 'gallery' => '', |
| 1841 | 'library' => '', |
| 1842 | ); |
| 1843 | |
| 1844 | $tabs = apply_filters( 'media_upload_tabs', $tabs ); |
| 1845 | unset( $tabs['type'], $tabs['type_url'], $tabs['gallery'], $tabs['library'] ); |
| 1846 | |
| 1847 | $props = array( |
| 1848 | 'link' => get_option( 'image_default_link_type' ), // db default is 'file' |
| 1849 | 'align' => get_option( 'image_default_align' ), // empty default |
| 1850 | 'size' => get_option( 'image_default_size' ), // empty default |
| 1851 | ); |
| 1852 | |
| 1853 | $settings = array( |