pre-upload-ui
Fires just before the legacy (pre-3.5.0) upload interface is loaded.
Usage
add_action( 'pre-upload-ui', 'wp_kama_pre_upload_ui_action' ); /** * Function for `pre-upload-ui` action-hook. * * @return void */ function wp_kama_pre_upload_ui_action(){ // action... }
Changelog
Since 2.6.0 | Introduced. |
Where the hook is called
pre-upload-ui
pre-upload-ui
wp-admin/includes/media.php 2150
do_action( 'pre-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
wp-includes/media-template.php 274
do_action( 'pre-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores