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 |
---|---|
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( |
1792 | 'tabs' => $tabs, |
1793 | 'tabUrl' => add_query_arg( array( 'chromeless' => true ), admin_url('media-upload.php') ), |
1794 | 'mimeTypes' => wp_list_pluck( get_post_mime_types(), 0 ), |
1795 | 'captions' => ! apply_filters( 'disable_captions', '' ), |
1796 | 'nonce' => array( |
1797 | 'sendToEditor' => wp_create_nonce( 'media-send-to-editor' ), |
1798 | ), |
1799 | 'post' => array( |
1800 | 'id' => 0, |
1801 | ), |
1802 | 'defaultProps' => $props, |
1803 | 'embedExts' => array_merge( wp_get_audio_extensions(), wp_get_video_extensions() ), |
1804 | ); |