wp_enqueue_media
Action HookDescription
Fires at the conclusion of wp_enqueue_media().Hook Information
File Location |
wp-includes/media.php
View on GitHub
|
Hook Type | Action |
Line Number | 5142 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into wp_enqueue_media
add_action('wp_enqueue_media', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-includes/media.php:5142
- How this hook is used in WordPress core
<?php
5137 /**
5138 * Fires at the conclusion of wp_enqueue_media().
5139 *
5140 * @since 3.5.0
5141 */
5142 do_action( 'wp_enqueue_media' );
5143 }
5144
5145 /**
5146 * Retrieves media attached to the passed post.
5147 *
PHP Documentation
<?php
/**
* Fires at the conclusion of wp_enqueue_media().
*
* @since 3.5.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-includes/media.php
Related Hooks
Related hooks will be displayed here in future updates.