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 |
|---|---|
| 1143 | $type['type'] = 'video/m4v'; |
| 1144 | $html .= sprintf( $source, $type['type'], esc_url( $$fallback ) ); |
| 1145 | } |
| 1146 | } |
| 1147 | if ( 'mediaelement' === $library ) |
| 1148 | $html .= wp_mediaelement_fallback( $fileurl ); |
| 1149 | $html .= '</video>'; |
| 1150 | |
| 1151 | $html = sprintf( '<div style="width: %dpx; max-width: 100%%;" class="wp-video">%s</div>', $width, $html ); |
| 1152 | return apply_filters( 'wp_video_shortcode', $html, $atts, $video, $post_id, $library ); |
| 1153 | } |
| 1154 | add_shortcode( 'video', 'wp_video_shortcode' ); |
| 1155 | |
| 1156 | /** |
| 1157 | * Display previous image link that has the same post parent. |
| 1158 | * |
| 1159 | * @since 2.5.0 |
| 1160 | * @param string $size Optional, default is 'thumbnail'. Size of image, either array or string. 0 or 'none' will default to post_title or $text; |
| 1161 | * @param string $text Optional, default is false. If included, link will reflect $text variable. |