WP HOOKS
filtrod 1.5.0

get_comment_author_IP

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

Opis — z kodu źródłowego

Filters the comment author's returned IP address.

Parametry

ParametrTypOpis
$comment_author_ipstringThe comment author's IP address, or an empty string if it's not available.
$comment_idstringThe 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_author_IP', 'twoja_funkcja', 10, 3 );

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

Popularne w tej kategorii