do_action( 'print_media_templates' )
- Since
- 3.5.0
Fires when the custom Backbone media templates are printed.
Compatibility
- WordPress
- since 3.5.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Where this hook fires · 1
wp-includes/media-template.php:1598wp_print_media_templates()
Source code
/** * Fires when the custom Backbone media templates are printed. * * @since 3.5.0 */ do_action( 'print_media_templates' ); if ( $is_cross_origin_isolation_enabled ) { $html = (string) ob_get_clean(); /* * The media templates are inside <script type="text/html"> tags,Changelog
Introduced in 3.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.