print_media_templates
Fires when the custom Backbone media templates are printed.
Usage
add_action( 'print_media_templates', 'wp_kama_print_media_templates_action' );
/**
* Function for `print_media_templates` action-hook.
*
* @return void
*/
function wp_kama_print_media_templates_action(){
// action...
}Changelog
| Since 3.5.0 | Introduced. |
Where the hook is called
print_media_templates
wp-includes/media-template.php 1584
do_action( 'print_media_templates' );