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 |
---|---|
950 | <input type="file" name="async-upload" id="async-upload" /> <input type="submit" class="button" name="html-upload" value="<?php echo attribute_escape(__('Upload')); ?>" /> <a href="#" onClick="return top.tb_remove();"><?php _e('Cancel'); ?></a> |
951 | </p> |
952 | <input type="hidden" name="post_id" id="post_id" value="<?php echo (int) $post_id; ?>" /> |
953 | <br class="clear" /> |
954 | <?php if ( is_lighttpd_before_150() ): ?> |
955 | <p><?php _e('If you want to use all capabilities of the uploader, like uploading multiple files at once, please upgrade to lighttpd 1.5.'); ?></p> |
956 | <?php endif;?> |
957 | <?php do_action('post-html-upload-ui'); ?> |
958 | </div> |
959 | <?php do_action('post-upload-ui'); ?> |
960 | <?php |
961 | } |
962 |
|
963 | function media_upload_type_form($type = 'file', $errors = null, $id = null) { |
964 | media_upload_header(); |
965 |
|
966 | $post_id = intval($_REQUEST['post_id']); |
967 |
|
968 | $form_action_url = admin_url("media-upload.php?type=$type&tab=type&post_id=$post_id"); |