A WordPress-centric search engine for devs and theme authors



embed_cache_oembed_types ›

Since2.9.0
Deprecatedn/a
apply_filters( 'embed_cache_oembed_types', $post_types )
Parameters:
  • (string[]) $post_types Array of post type names to cache oEmbed results for. Defaults to post types with `show_ui` set to true.
    Required: Yes
Defined at:
Codex:

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





Source

if ( empty( $post->ID ) || ! in_array( $post->post_type, apply_filters( 'embed_cache_oembed_types', $post_types ) ) ) {