Filters the oEmbed TTL value (time to live).
DAY_IN_SECONDS, $url, $attr, $post_id
Sortie :
@param int $time Time to live (in seconds). @param string $url The attempted embed URL. @param array $attr An array of shortcode attributes. @param int $post_id Post ID.
// Modifier la valeur avec le filtre 'oembed_ttl'
add_filter('oembed_ttl', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(DAY_IN_SECONDS) {
// Modifier la valeur
return DAY_IN_SECONDS;
}
Chargement des actualités...