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



rest_oembed_ttl › WordPress过滤钩子

Since4.8.0
已弃用n/a
apply_filters( 'rest_oembed_ttl', DAY_IN_SECONDS, $url, $args )
参数: (3)
  • (int) $time Time to live (in seconds).
    Required: Yes
  • (string) $url The attempted embed URL.
    Required: Yes
  • (array) $args An array of embed request arguments.
    Required: Yes
定义在:
文档:

Filters the oEmbed TTL value (time to live).

Similar to the {@see 'oembed_ttl'} filter, but for the REST API oEmbed proxy endpoint.





源码

$ttl = apply_filters( 'rest_oembed_ttl', DAY_IN_SECONDS, $url, $args );