WP HOOKS
filtrod 1.5.0

get_comment_ID

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

Opis — z kodu źródłowego

Filters the returned comment ID.

Parametry

ParametrTypOpis
$comment_idstringThe current comment ID as a numeric string.
$comment\WP_CommentThe comment object.

Wywołanie

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

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

Popularne w tej kategorii