WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 1337 | if ( 1 === $instance ) { |
| 1338 | /** |
| 1339 | * Print and enqueue playlist scripts, styles, and JavaScript templates. |
| 1340 | * |
| 1341 | * @since 3.9.0 |
| 1342 | * |
| 1343 | * @param string $type Type of playlist. Possible values are 'audio' or 'video'. |
| 1344 | * @param string $style The 'theme' for the playlist. Core provides 'light' and 'dark'. |
| 1345 | */ |
| 1346 | do_action( 'wp_playlist_scripts', $type, $style ); |
| 1347 | } ?> |
| 1348 | <div class="wp-playlist wp-<?php echo $safe_type ?>-playlist wp-playlist-<?php echo $safe_style ?>"> |
| 1349 | <?php if ( 'audio' === $type ): ?> |
| 1350 | <div class="wp-playlist-current-item"></div> |
| 1351 | <?php endif ?> |
| 1352 | <<?php echo $safe_type ?> controls="controls" preload="none" width="<?php |
| 1353 | echo (int) $theme_width; |
| 1354 | ?>"<?php if ( 'video' === $safe_type ): |
| 1355 | echo ' height="', (int) $theme_height, '"'; |