post-upload-ui
Fires on the post upload UI screen.
Legacy (pre-3.5.0) media workflow hook.
Usage
add_action( 'post-upload-ui', 'wp_kama_post_upload_ui_action' ); /** * Function for `post-upload-ui` action-hook. * * @return void */ function wp_kama_post_upload_ui_action(){ // action... }
Changelog
Since 2.6.0 | Introduced. |
Where the hook is called
post-upload-ui
post-upload-ui
wp-admin/includes/media.php 2314
do_action( 'post-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
wp-includes/media-template.php 314
do_action( 'post-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores