WordPress action hook · part of WordPress core
pre-html-upload-ui
A WordPress core action that 4 plugins also fire themselves, running on 30K+ sites between them.
How to use pre-html-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-html-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 →
4 plugins that fire pre-html-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-html-upload-ui' )includes/admin/media.php:125 -
s2member Secure File Uploader80+ installs
do_action( 'pre-html-upload-ui' )s2member-secure-file-uploader.php:170 -
YouTube Uploader20+ installs
do_action( 'pre-html-upload-ui' )media-upload.php:234 -
MailBard Newsletters10+ installs
do_action( 'pre-html-upload-ui' )legacy/views/back/campaigns.php:2533
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.