filtrod 1.5.0
get_comment_time
Opis — z kodu źródłowego
Filters the returned comment time.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$comment_time | string | int | The comment time, formatted as a date string or Unix timestamp. |
$format | string | PHP date format. |
$gmt | bool | Whether the GMT date is in use. |
$translate | bool | Whether the time is translated. |
$comment | \WP_Comment | The comment object. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_comment_time', 'twoja_funkcja', 10, 5 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_comment_time', 'twoja_funkcja', 10, 5 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5) {
// Twój kod
}Popularne w tej kategorii