wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



rest_oembed_ttl › Filtr WordPress Hooks

Od4.8.0
Przestarzałyn/a
apply_filters( 'rest_oembed_ttl', DAY_IN_SECONDS, $url, $args )
Parametry: (3)
  • (int) $time Time to live (in seconds).
    Wymagane: Tak
  • (string) $url The attempted embed URL.
    Wymagane: Tak
  • (array) $args An array of embed request arguments.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the oEmbed TTL value (time to live).

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





Źródło

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