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



oembed_ttl › Filtr WordPress Hooks

Od4.0.0
Przestarzałyn/a
› apply_filters( 'oembed_ttl', DAY_IN_SECONDS, $url, $attr, $post_id )
Parametry: (4)
  • () time Time to live (in seconds).
    Wymagane: Tak
  • () url The attempted embed URL.
    Wymagane: Tak
  • () attr An array of shortcode attributes.
    Wymagane: Tak
  • () post_id Post ID.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the oEmbed TTL value (time to live).





Źródło

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