Action hook 'post-upload-ui'

in WP Core File wp-includes/media-template.php at line 314

View Source

post-upload-ui

Action Hook
Description
Prints the templates used in the media manager.

Hook Information

File Location wp-includes/media-template.php View on GitHub
Hook Type Action
Line Number 314

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into post-upload-ui
add_action('post-upload-ui', 'my_custom_function');

function my_custom_function() {
    // Your custom code here
}

Source Code Context

wp-includes/media-template.php:314 - How this hook is used in WordPress core
<?php
 309  					</p>
 310  				<# } #>
 311  
 312  				<?php
 313  				/** This action is documented in wp-admin/includes/media.php */
 314  				do_action( 'post-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
 315  				?>
 316  			</div>
 317  		<?php endif; ?>
 318  		</div>
 319  	</script>

PHP Documentation

<?php
/**
 * Prints the templates used in the media manager.
 *
 * @since 3.5.0
 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-includes/media-template.php
Related Hooks

Related hooks will be displayed here in future updates.