WP HOOKS
filtrod 4.9.6

wp_anonymize_comment

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

Opis — z kodu źródłowego

Filters whether to anonymize the comment.

Parametry

ParametrTypOpis
$anon_messagebool | stringWhether to apply the comment anonymization (bool) or a custom message (string). Default true.
$comment\WP_CommentWP_Comment object.
$anonymized_commentarrayAnonymized comment data.

Wywołanie

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

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

Popularne w tej kategorii