pre-plupload-upload-ui
Fires before the upload interface loads.
Usage
add_action( 'pre-plupload-upload-ui', 'wp_kama_pre_plupload_upload_ui_action' ); /** * Function for `pre-plupload-upload-ui` action-hook. * * @return void */ function wp_kama_pre_plupload_upload_ui_action(){ // action... }
Changelog
Since 3.3.0 | Introduced. |
Since 2.6.0 | As 'pre-flash-upload-ui' |
Where the hook is called
pre-plupload-upload-ui
pre-plupload-upload-ui
wp-admin/includes/media.php 2245
do_action( 'pre-plupload-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
wp-includes/media-template.php 276
do_action( 'pre-plupload-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores