WP HOOKS
filtrod 1.5.0

get_comment_date

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

Opis — z kodu źródłowego

Filters the returned comment date.

Parametry

ParametrTypOpis
$comment_datestring | intFormatted date string or Unix timestamp.
$formatstringPHP date format.
$comment\WP_CommentThe comment object.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_comment_date', 'twoja_funkcja', 10, 3 );

function twoja_funkcja($param_1, $param_2, $param_3) {
	// Twój kod
}

Popularne w tej kategorii