post-plupload-upload-ui хук-событиеWP 3.3.0

Fires after the upload interface loads.

Использование

add_action( 'post-plupload-upload-ui', 'wp_kama_post_plupload_upload_ui_action' );

/**
 * Function for `post-plupload-upload-ui` action-hook.
 * 
 * @return void
 */
function wp_kama_post_plupload_upload_ui_action(){

	// action...
}

Список изменений

С версии 3.3.0 Введена.
С версии 2.6.0 As 'post-flash-upload-ui'

Где вызывается хук

media_upload_form()
post-plupload-upload-ui
wp_print_media_templates()
post-plupload-upload-ui
wp-admin/includes/media.php 2246
do_action( 'post-plupload-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
wp-includes/media-template.php 269
do_action( 'post-plupload-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
wp-includes/media-template.php 273
do_action( 'post-plupload-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

Где используется хук в WordPress

wp-admin/includes/admin-filters.php 26
add_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' );
wp-includes/media-template.php 267
if ( 10 === remove_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' ) ) {
wp-includes/media-template.php 270
add_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' );