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 |
---|---|
1440 | // to ensure plugins will work. We will then unset those tabs. |
1441 | $tabs = array( |
1442 | // handler action suffix => tab label |
1443 | 'type' => '', |
1444 | 'type_url' => '', |
1445 | 'gallery' => '', |
1446 | 'library' => '', |
1447 | ); |
1448 |
|
1449 | $tabs = apply_filters( 'media_upload_tabs', $tabs ); |
1450 | unset( $tabs['type'], $tabs['type_url'], $tabs['gallery'], $tabs['library'] ); |
1451 |
|
1452 | $settings = array( |
1453 | 'tabs' => $tabs, |
1454 | 'tabUrl' => add_query_arg( array( 'chromeless' => true ), admin_url('media-upload.php') ), |
1455 | 'mimeTypes' => wp_list_pluck( get_post_mime_types(), 0 ), |
1456 | 'captions' => ! apply_filters( 'disable_captions', '' ), |
1457 | 'nonce' => array( |
1458 | 'sendToEditor' => wp_create_nonce( 'media-send-to-editor' ), |