Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: pre-plupload-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
58                     <h3 class="upload-instructions drop-instructions"><?php _e( 'Drop files anywhere to upload' ); ?></h3>
59                     <a href="#" class="browser button button-hero"><?php _e( 'Select Files' ); ?></a>
60                </div>
61
62                <div class="upload-inline-status"></div>
63
64                <div class="post-upload-ui">
65                     <?php
66                     do_action( 'pre-upload-ui' );
67                     do_action( 'pre-plupload-upload-ui' );
68
69                     if ( 10 === remove_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' ) ) {
70                          do_action( 'post-plupload-upload-ui' );
71                          add_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' );
72                     } else {
73                          do_action( 'post-plupload-upload-ui' );
74                     }
75
76                     $upload_size_unit = $max_upload_size = wp_max_upload_size();