admin_head
Action HookDescription
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 | 591 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into admin_head
add_action('admin_head', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-admin/includes/media.php:591
- How this hook is used in WordPress core
<?php
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 ) ) {
594 /**
595 * Fires in the admin header for each specific form tab in the legacy
596 * (pre-3.5.0) media upload popup.
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.