Action hook 'admin_head_{$content_func}'

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

View Source

admin_head_{$content_func}

Action Hook
Description
Fires in the admin header for each specific form tab in the legacy (pre-3.5.0) media upload popup. The dynamic portion of the hook name, `$content_func`, refers to the form callback for the media upload type.

Hook Information

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

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into admin_head_{$content_func}
add_action('admin_head_{$content_func}', 'my_custom_function');

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

Source Code Context

wp-admin/includes/media.php:603 - How this hook is used in WordPress core
<?php
 598  		 * The dynamic portion of the hook name, `$content_func`, refers to the form
 599  		 * callback for the media upload type.
 600  		 *
 601  		 * @since 2.5.0
 602  		 */
 603  		do_action( "admin_head_{$content_func}" );
 604  	}
 605  
 606  	$body_id_attr = '';
 607  
 608  	if ( isset( $body_id ) ) {

PHP Documentation

<?php
/**
		 * Fires in the admin header for each specific form tab in the legacy
		 * (pre-3.5.0) media upload popup.
		 *
		 * The dynamic portion of the hook name, `$content_func`, refers to the form
		 * callback for the media upload type.
		 *
		 * @since 2.5.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.