filtrod 4.0.0
oembed_ttl
Opis — z kodu źródłowego
Filters the oEmbed TTL value (time to live).
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$time | int | Time to live (in seconds). |
$url | string | The attempted embed URL. |
$attr | array | An array of shortcode attributes. |
$post_id | int | Post ID. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'oembed_ttl', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'oembed_ttl', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii