Action hook 'admin_head-media-upload-popup'

in WP Core File wp-admin/includes/media.php at line 588

View Source

admin_head-media-upload-popup

Action Hook
Description
Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0) media upload popup are printed.

Hook Information

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

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into admin_head-media-upload-popup
add_action('admin_head-media-upload-popup', 'my_custom_function');

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

Source Code Context

wp-admin/includes/media.php:588 - How this hook is used in WordPress core
<?php
 583  	 * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
 584  	 * media upload popup are printed.
 585  	 *
 586  	 * @since 2.9.0
 587  	 */
 588  	do_action( 'admin_head-media-upload-popup' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
 589  
 590  	/** This action is documented in wp-admin/admin-header.php */
 591  	do_action( 'admin_head' );
 592  
 593  	if ( is_string( $content_func ) ) {

PHP Documentation

<?php
/**
	 * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
	 * media upload popup are printed.
	 *
	 * @since 2.9.0
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-admin/includes/media.php
Related Hooks

Related hooks will be displayed here in future updates.