filtrod 2.6.0
get_post_time
Opis — z kodu źródłowego
Filters the localized time of the post.
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 date of the post. Accepts 'G', 'U', or PHP date format. |
$gmt | bool | Whether to retrieve the GMT time. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_post_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_time', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii