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 |
|---|---|
| 2787 | if ( 1 === $instance ) { |
| 2788 | /** |
| 2789 | * Prints and enqueues playlist scripts, styles, and JavaScript templates. |
| 2790 | * |
| 2791 | * @since 3.9.0 |
| 2792 | * |
| 2793 | * @param string $type Type of playlist. Possible values are 'audio' or 'video'. |
| 2794 | * @param string $style The 'theme' for the playlist. Core provides 'light' and 'dark'. |
| 2795 | */ |
| 2796 | do_action( 'wp_playlist_scripts', $atts['type'], $atts['style'] ); |
| 2797 | } |
| 2798 | ?> |
| 2799 | <div class="wp-playlist wp-<?php echo $safe_type; ?>-playlist wp-playlist-<?php echo $safe_style; ?>"> |
| 2800 | <?php if ( 'audio' === $atts['type'] ) : ?> |
| 2801 | <div class="wp-playlist-current-item"></div> |
| 2802 | <?php endif; ?> |
| 2803 | <<?php echo $safe_type; ?> controls="controls" preload="none" width="<?php echo (int) $theme_width; ?>" |
| 2804 | <?php |
| 2805 | if ( 'video' === $safe_type ) { |