post-plupload-upload-ui

The WordPress Core post plupload upload ui hook.

Description

add_action( 'post-plupload-upload-ui', (string) $media_upload_flash_bypass ); 

Parameters (1)

0. $media_upload_flash_bypass (string) => 'media_upload_flash_bypass'
The media upload flash bypass.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'post-plupload-upload-ui', $media_upload_flash_bypass ); 
The following example is for adding a hook callback.
  1. // define the post-plupload-upload-ui callback 
  2. function action_post_plupload_upload_ui( $media_upload_flash_bypass ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'post-plupload-upload-ui', 'action_post_plupload_upload_ui', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'post-plupload-upload-ui', 'action_post_plupload_upload_ui', 10, 1 ); 

Defined (6)

The action is defined in the following location(s).

/wp-admin/includes/admin-filters.php  
  1. add_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' ); 
/wp-admin/includes/media.php  
  1. do_action( 'post-plupload-upload-ui' ); ?> 
/wp-includes/media-template.php  
  1. if ( 10 === remove_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' ) ) { 
  1. do_action( 'post-plupload-upload-ui' ); 
  1. add_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' ); 
  1. do_action( 'post-plupload-upload-ui' );