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 |
|---|---|
| 4508 | |
| 4509 | /** |
| 4510 | * Filters the embedded media types that are allowed to be returned from the content blob. |
| 4511 | * |
| 4512 | * @since 4.2.0 |
| 4513 | * |
| 4514 | * @param string[] $allowed_media_types An array of allowed media types. Default media types are |
| 4515 | * 'audio', 'video', 'object', 'embed', and 'iframe'. |
| 4516 | */ |
| 4517 | $allowed_media_types = apply_filters( 'media_embedded_in_content_allowed_types', array( 'audio', 'video', 'object', 'embed', 'iframe' ) ); |
| 4518 | |
| 4519 | if ( ! empty( $types ) ) { |
| 4520 | if ( ! is_array( $types ) ) { |
| 4521 | $types = array( $types ); |
| 4522 | } |
| 4523 | |
| 4524 | $allowed_media_types = array_intersect( $allowed_media_types, $types ); |
| 4525 | } |
| 4526 | |