WP HOOKS
akcjaod 2.9.0

spam_comment

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

Opis — z kodu źródłowego

Fires immediately before a comment is marked as Spam.

Parametry

ParametrTypOpis
$comment_idintThe comment ID.
$comment\WP_CommentThe comment to be marked as spam.

Wywołanie

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

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

Popularne w tej kategorii