admin_head-media-upload-popup
Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0) media upload popup are printed.
Description
do_action( 'admin_head-media-upload-popup' );
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'admin_head-media-upload-popup' );
- The following example is for adding a hook callback.
- // define the admin_head-media-upload-popup callback
- function action_admin_head_media_upload_popup( ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'admin_head-media-upload-popup', 'action_admin_head_media_upload_popup', 10, 0 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'admin_head-media-upload-popup', 'action_admin_head_media_upload_popup', 10, 0 );
Defined (1)
The action is defined in the following location(s).
- /wp-admin/includes/media.php
- do_action( 'admin_head-media-upload-popup' );