wpseek.com
WordPress开发者和主题制作者的搜索引擎



embed_cache_oembed_types › WordPress过滤钩子

Since2.9.0
已弃用n/a
apply_filters( 'embed_cache_oembed_types', $post_types )
参数:
  • (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
定义在:
文档:

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





源码

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