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 |
|---|---|
| 3564 | |
| 3565 | /** |
| 3566 | * Filter the embedded media types that are allowed to be returned from the content blob. |
| 3567 | * |
| 3568 | * @since 4.2.0 |
| 3569 | * |
| 3570 | * @param array $allowed_media_types An array of allowed media types. Default media types are |
| 3571 | * 'audio', 'video', 'object', 'embed', and 'iframe'. |
| 3572 | */ |
| 3573 | $allowed_media_types = apply_filters( 'media_embedded_in_content_allowed_types', array( 'audio', 'video', 'object', 'embed', 'iframe' ) ); |
| 3574 | |
| 3575 | if ( ! empty( $types ) ) { |
| 3576 | if ( ! is_array( $types ) ) { |
| 3577 | $types = array( $types ); |
| 3578 | } |
| 3579 | |
| 3580 | $allowed_media_types = array_intersect( $allowed_media_types, $types ); |
| 3581 | } |
| 3582 | |