pre-html-upload-ui
Fires before the upload button in the media upload interface.
Usage
add_action( 'pre-html-upload-ui', 'wp_kama_pre_html_upload_ui_action' ); /** * Function for `pre-html-upload-ui` action-hook. * * @return void */ function wp_kama_pre_html_upload_ui_action(){ // action... }
Changelog
Since 2.6.0 | Introduced. |
Where the hook is called
pre-html-upload-ui
wp-admin/includes/media.php 2273
do_action( 'pre-html-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores