WP HOOKS
filtrod 2.1.0

comment_flood_filter

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

Opis — z kodu źródłowego

Filters the comment flood status.

Parametry

ParametrTypOpis
$boolboolWhether a comment flood is occurring. Default false.
$time_lastcommentintTimestamp of when the last comment was posted.
$time_newcommentintTimestamp of when the new comment was posted.

Wywołanie

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

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

Popularne w tej kategorii