print_media_templates
Action HookDescription
Fires when the custom Backbone media templates are printed.Hook Information
File Location |
wp-includes/media-template.php
View on GitHub
|
Hook Type | Action |
Line Number | 1584 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into print_media_templates
add_action('print_media_templates', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-includes/media-template.php:1584
- How this hook is used in WordPress core
<?php
1579 /**
1580 * Fires when the custom Backbone media templates are printed.
1581 *
1582 * @since 3.5.0
1583 */
1584 do_action( 'print_media_templates' );
1585 }
PHP Documentation
<?php
/**
* Fires when the custom Backbone media templates are printed.
*
* @since 3.5.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-includes/media-template.php
Related Hooks
Related hooks will be displayed here in future updates.