W3cubDocs

/WordPress

apply_filters( 'embed_cache_oembed_types', string[] $post_types )

Filters the array of post types to cache oEmbed results for.

Parameters

$post_types

(string[]) Array of post type names to cache oEmbed results for. Defaults to post types with show_ui set to true.

Source

File: wp-includes/class-wp-embed.php

View on Trac

Changelog

Version Description
2.9.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/embed_cache_oembed_types