upload_ui_over_quota
Action HookDescription
Prints the templates used in the media manager.Hook Information
File Location |
wp-includes/media-template.php
View on GitHub
|
Hook Type | Action |
Line Number | 259 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into upload_ui_over_quota
add_action('upload_ui_over_quota', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-includes/media-template.php:259
- How this hook is used in WordPress core
<?php
254 <?php elseif ( is_multisite() && ! is_upload_space_available() ) : ?>
255 <div class="upload-ui">
256 <h2 class="upload-instructions"><?php _e( 'Upload Limit Exceeded' ); ?></h2>
257 <?php
258 /** This action is documented in wp-admin/includes/media.php */
259 do_action( 'upload_ui_over_quota' );
260 ?>
261 </div>
262 <?php else : ?>
263 <div class="upload-ui">
264 <h2 class="upload-instructions drop-instructions"><?php _e( 'Drop files to upload' ); ?></h2>
PHP Documentation
<?php
/**
* Prints the templates used in the media manager.
*
* @since 3.5.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-includes/media-template.php
Related Hooks
Related hooks will be displayed here in future updates.