filtrod 4.0.0
human_time_diff
Opis — z kodu źródłowego
Filters the human-readable difference between two timestamps.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$since | string | The difference in human-readable text. |
$diff | int | The difference in seconds. |
$from | int | Unix timestamp from which the difference begins. |
$to | int | Unix timestamp to end the time difference. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'human_time_diff', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'human_time_diff', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii