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



oembed_ttl › Les Filtres WordPress

Depuis4.0.0
Dépréciéen/a
apply_filters( 'oembed_ttl', DAY_IN_SECONDS, $url, $attr, $post_id )
Paramètres: (4)
  • (int) $time Time to live (in seconds).
    Requis: Oui
  • (string) $url The attempted embed URL.
    Requis: Oui
  • (array) $attr An array of shortcode attributes.
    Requis: Oui
  • (int) $post_id Post ID.
    Requis: Oui
Défini(e) dans:
Codex:

Filters the oEmbed TTL value (time to live).





Source

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