Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: pre-upload-ui

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
254                     <p class="upload-instructions drop-instructions"><?php _ex( 'or', 'Uploader: Drop files here - or - Select Files' ); ?></p>
255                     <button type="button" class="browser button button-hero"><?php _e( 'Select Files' ); ?></button>
256                </div>
257
258                <div class="upload-inline-status"></div>
259
260                <div class="post-upload-ui">
261                     <?php
262                     /** This action is documented in wp-admin/includes/media.php */
263                     do_action( 'pre-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
264                     /** This action is documented in wp-admin/includes/media.php */
265                     do_action( 'pre-plupload-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
266
267                     if ( 10 === remove_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' ) ) {
268                          /** This action is documented in wp-admin/includes/media.php */
269                          do_action( 'post-plupload-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
270                          add_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' );
271                     } else {
272                          /** This action is documented in wp-admin/includes/media.php */