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 |
---|---|
237 | <p class="upload-instructions drop-instructions"><?php _ex( 'or', 'Uploader: Drop files here - or - Select Files' ); ?></p> |
238 | <button type="button" class="browser button button-hero"><?php _e( 'Select Files' ); ?></button> |
239 | </div> |
240 |
|
241 | <div class="upload-inline-status"></div> |
242 |
|
243 | <div class="post-upload-ui"> |
244 | <?php |
245 | /** This action is documented in wp-admin/includes/media.php */ |
246 | do_action( 'pre-upload-ui' ); |
247 | /** This action is documented in wp-admin/includes/media.php */ |
248 | do_action( 'pre-plupload-upload-ui' ); |
249 |
|
250 | if ( 10 === remove_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' ) ) { |
251 | /** This action is documented in wp-admin/includes/media.php */ |
252 | do_action( 'post-plupload-upload-ui' ); |
253 | add_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' ); |
254 | } else { |
255 | /** This action is documented in wp-admin/includes/media.php */ |