Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: upload_ui_over_quota

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
210           <# if ( data.message ) { #>
211                <h2 class="upload-message">{{ data.message }}</h2>
212           <# } #>
213           <?php if ( ! _device_can_upload() ) : ?>
214                <h2 class="upload-instructions"><?php printf( __( 'The web browser on your device cannot be used to upload files. You may be able to use the <a href="%s">native app for your device</a> instead.' ), 'https://apps.wordpress.org/' ); ?></h2>
215           <?php elseif ( is_multisite() && ! is_upload_space_available() ) : ?>
216                <h2 class="upload-instructions"><?php _e( 'Upload Limit Exceeded' ); ?></h2>
217                <?php
218                /** This action is documented in wp-admin/includes/media.php */
219                do_action( 'upload_ui_over_quota' );
220                ?>
221
222           <?php else : ?>
223                <div class="upload-ui">
224                     <h2 class="upload-instructions drop-instructions"><?php _e( 'Drop files anywhere to upload' ); ?></h2>
225                     <p class="upload-instructions drop-instructions"><?php _ex( 'or', 'Uploader: Drop files here - or - Select Files' ); ?></p>
226                     <button type="button" class="browser button button-hero"><?php _e( 'Select Files' ); ?></button>
227                </div>
228