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



oembed_ttl › WordPress过滤钩子

Since4.0.0
已弃用n/a
› apply_filters( 'oembed_ttl', DAY_IN_SECONDS, $url, $attr, $post_id )
参数: (4)
  • () time Time to live (in seconds).
    Required: Yes
  • () url The attempted embed URL.
    Required: Yes
  • () attr An array of shortcode attributes.
    Required: Yes
  • () post_id Post ID.
    Required: Yes
定义在:
文档:

Filters the oEmbed TTL value (time to live).





源码

$ttl = apply_filters( 'oembed_ttl', DAY_IN_SECONDS, $url, $attr, $post_id );