filtrod 0.71
the_time
Opis — z kodu źródłowego
Filters the time of the post, for display.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$get_the_time | string | The formatted time. |
$format | string | Format to use for retrieving the time the post was written. Accepts 'G', 'U', or PHP date format. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'the_time', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'the_time', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii