1. 首页
  2. WordPress钩子手册

embed_cache_oembed_types

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

过滤器::过滤要缓存oEmbed结果的post类型数组。
Filter Hook: Filters the array of post types to cache oEmbed results for.

目录锚点:#参数#源码


参数(Parameters)

参数 类型 说明
$post_types (string[]) 要缓存其oEmbed结果的post类型名称数组。默认为“显示用户界面”设置为“真”的文章类型。

源码(Source)


更新版本 源码位置 使用 被使用
2.9.0 wp-includes/class-wp-embed.php:380 1 0

embed_cache_oembed_types 为WP2原创文章,链接:https://www.wp2.cn/hook/embed_cache_oembed_types/