This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
post-upload-ui action
Fires on the post upload UI screen. Legacy (pre-3.5.0) media workflow hook.
do_action( 'post-upload-ui' )
Description
This is action hook , its fire on the post upload UI screen.
Its consists of no parameter.
It is used by media_upload_form() hook which generate the legacy media upload form and wp_print_media_templates() that print the templates used in the media manager.
Parameters
- No parameters
Live Example
To run the hook, copy the example below.
// run the action do_action( 'post-upload-ui',);
The following example is for adding a hook callback.
// define the post-html-upload-ui callback function action_post_upload_ui( ) { // make action magic happen here... }; // add the action add_action( 'post-upload-ui', 'action_post_upload_ui', 10, 1 );
To remove a hook callback, use the example below.
// remove the action remove_action( 'post-upload-ui', 'action_post_upload_ui', 10, 1 );
Explore the latest in WordPress
Trying to stay on top of it all? Get the best tools, resources and inspiration sent to your inbox every Wednesday.