WP HOOKS
akcjaod 2.9.0

trashed_comment

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

Opis — z kodu źródłowego

Fires immediately after a comment is sent to Trash.

Parametry

ParametrTypOpis
$comment_idstringThe comment ID as a numeric string.
$comment\WP_CommentThe trashed comment.

Wywołanie

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

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

Popularne w tej kategorii