WP HOOKS
akcjaod 2.3.0

check_comment_flood

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

Opis — z kodu źródłowego

Fires immediately before a comment is marked approved.

Allows checking for comment flooding.

Parametry

ParametrTypOpis
$comment_author_ipstringComment author's IP address.
$comment_author_emailstringComment author's email.
$comment_date_gmtstringGMT date the comment was posted.
$wp_errorboolWhether to return a WP_Error object instead of executing wp_die() or die() if a comment flood is occurring.

Wywołanie

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

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

Popularne w tej kategorii