WordPress action hook · part of WordPress core
upload_ui_over_quota
A WordPress core action that 6 plugins also fire themselves, running on 30K+ sites between them.
“This action is documented in wp-admin/includes/media.php”
How to use upload_ui_over_quota
It's an action: your callback runs at that point. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'upload_ui_over_quota', function() {
// Your code runs here.
}, 10, 1 );Argument names come from Slider by Soliloquy's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
This hook is fired by WordPress core too. Official reference on developer.wordpress.org →
6 plugins that fire upload_ui_over_quota
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Slider by Soliloquy30,000+ installs
do_action( 'upload_ui_over_quota' )includes/admin/media.php:78 -
File Un-Attach300+ installs
do_action( 'upload_ui_over_quota' )inc/media-template.3.9.php:62 -
Used Media Identifier10+ installs
do_action( 'upload_ui_over_quota' )admin/class-used-media-identifier-admin.php:216 -
THRON10+ installs
do_action( 'upload_ui_over_quota' )admin/class-thron-admin.php:2277 -
BuddyDrive10+ installs
do_action( 'upload_ui_over_quota' )includes/buddydrive-item-classes.php:719 -
CoyoteFewer than 10 installs
do_action( 'upload_ui_over_quota' )php/media-template.php:101
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.