filtrod 2.0.0
the_modified_time
Opis — z kodu źródłowego
Filters the localized time a post was last modified, for display.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$get_the_modified_time | string | false | The formatted time or false if no post is found. |
$format | string | Format to use for retrieving the time the post was modified. Accepts 'G', 'U', or PHP date format. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'the_modified_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_modified_time', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii