WP HOOKS
filtrod 4.0.0

human_time_diff

Args 4Plik wp-includes/formatting.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the human-readable difference between two timestamps.

Parametry

ParametrTypOpis
$sincestringThe difference in human-readable text.
$diffintThe difference in seconds.
$fromintUnix timestamp from which the difference begins.
$tointUnix 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
}

Popularne w tej kategorii