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

In this article

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

Parameters

$post_typesstring[]
Array of post type names to cache oEmbed results for. Defaults to post types with show_ui set to true.

Source

$cache_oembed_types = apply_filters( 'embed_cache_oembed_types', $post_types );

Changelog

VersionDescription
2.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.