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 |
---|---|
191 | <# if ( data.message ) { #> |
192 | <h3 class="upload-message">{{ data.message }}</h3> |
193 | <# } #> |
194 | <?php if ( ! _device_can_upload() ) : ?> |
195 | <h3 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/' ); ?></h3> |
196 | <?php elseif ( is_multisite() && ! is_upload_space_available() ) : ?> |
197 | <h3 class="upload-instructions"><?php _e( 'Upload Limit Exceeded' ); ?></h3> |
198 | <?php |
199 | /** This action is documented in wp-admin/includes/media.php */ |
200 | do_action( 'upload_ui_over_quota' ); ?> |
201 |
|
202 | <?php else : ?> |
203 | <div class="upload-ui"> |
204 | <h3 class="upload-instructions drop-instructions"><?php _e( 'Drop files anywhere to upload' ); ?></h3> |
205 | <p class="upload-instructions drop-instructions"><?php _ex( 'or', 'Uploader: Drop files here - or - Select Files' ); ?></p> |
206 | <a href="#" class="browser button button-hero"><?php _e( 'Select Files' ); ?></a> |
207 | </div> |
208 |
|
209 | <div class="upload-inline-status"></div> |