WP HOOKS
akcjaod 5.5.0

wp_check_comment_disallowed_list

Args 6Plik wp-includes/comment.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Fires before the comment is tested for disallowed characters or words.

Parametry

ParametrTypOpis
$authorstringComment author.
$emailstringComment author's email.
$urlstringComment author's URL.
$commentstringComment content.
$user_ipstringComment author's IP address.
$user_agentstringComment author's browser user agent.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'wp_check_comment_disallowed_list', 'twoja_funkcja', 10, 6 );

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

Popularne w tej kategorii