Exciting News! Flipper Code is now WePlugins! Same commitment to excellence, brand new identity.

How to use post-html-upload-ui action in WordPress

Sandeep Kumar Mishra
Sandeep Kumar Mishra
July 18, 2022
5 minutes read

post-html-upload-ui action

Fires after the upload button in the media upload interface.

do_action( 'post-html-upload-ui' )

Description

This is an action hook that fires after the upload button in the media upload interface. It consists of no parameters and is used by the media_upload_form() hook which generates the legacy media upload form.

Parameters

  • No parameters

Live Examples

Run the Action

To run the hook, copy the example below.

  // Run the action 
  do_action( 'weplugins_post-html-upload-ui' ); 
  

Add a Hook Callback

The following example is for adding a hook callback.

  // Define the post-html-upload-ui callback 
  function weplugins_action_post_html_upload_ui() { 
      // Make action magic happen here... 
  }; 
           
  // Add the action 
  add_action( 'weplugins_post-html-upload-ui', 'weplugins_action_post_html_upload_ui', 10, 1 ); 
  

Remove a Hook Callback

To remove a hook callback, use the example below.

  // Remove the action 
  remove_action( 'weplugins_post-html-upload-ui', 'weplugins_action_post_html_upload_ui', 10, 1 ); 
  

Access Premium WordPress Plugins

Contact Us

If you need customization, feel free to Contact Us.

Sandeep Kumar Mishra

Sandeep Kumar Mishra

Sandeep Kumar Mishra writes about WordPress and Artificial Intelligence, offering tips and guides to help you master your website and stay updated with the latest tech trends.

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.