WordPress action hook · part of WordPress core
pre-plupload-upload-ui
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 pre-plupload-upload-ui
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( 'pre-plupload-upload-ui', 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 pre-plupload-upload-ui
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Slider by Soliloquy30,000+ installs
do_action( 'pre-plupload-upload-ui' )includes/admin/media.php:111 -
File Un-Attach300+ installs
do_action( 'pre-plupload-upload-ui' )inc/media-template.3.9.php:77 -
Used Media Identifier10+ installs
do_action( 'pre-plupload-upload-ui' )admin/class-used-media-identifier-admin.php:232 -
THRON10+ installs
do_action( 'pre-plupload-upload-ui' )admin/class-thron-admin.php:2298 -
MailBard Newsletters10+ installs
do_action( 'pre-plupload-upload-ui' )legacy/views/back/campaigns.php:2521 -
CoyoteFewer than 10 installs
do_action( 'pre-plupload-upload-ui' )php/media-template.php:118
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.