WP HOOKS
filtrod 1.5.0

get_comment_time

Args 5Plik wp-includes/comment-template.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the returned comment time.

Parametry

ParametrTypOpis
$comment_timestring | intThe comment time, formatted as a date string or Unix timestamp.
$formatstringPHP date format.
$gmtboolWhether the GMT date is in use.
$translateboolWhether the time is translated.
$comment\WP_CommentThe 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
}

Popularne w tej kategorii