filtrod 2.8.0
get_post_modified_time
Opis — z kodu źródłowego
Filters the localized time a post was last modified.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$time | string | int | Formatted date string or Unix timestamp if <code>$format</code> is 'U' or 'G'. |
$format | string | Format to use for retrieving the time the post was modified. Accepts 'G', 'U', or PHP date format. Default 'U'. |
$gmt | bool | Whether to retrieve the GMT time. Default false. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_post_modified_time', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_post_modified_time', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii