wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



rest_oembed_ttl › Les Filtres WordPress

Depuis4.8.0
Dépréciéen/a
apply_filters( 'rest_oembed_ttl', DAY_IN_SECONDS, $url, $args )
Paramètres: (3)
  • (int) $time Time to live (in seconds).
    Requis: Oui
  • (string) $url The attempted embed URL.
    Requis: Oui
  • (array) $args An array of embed request arguments.
    Requis: Oui
Défini(e) dans:
Codex:

Filters the oEmbed TTL value (time to live).

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





Source

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