WP HOOKS
akcjaod 1.2.0

edit_comment

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

Opis — z kodu źródłowego

Fires immediately after a comment is updated in the database.

The hook also fires immediately before comment status transition hooks are fired.

Parametry

ParametrTypOpis
$comment_idintThe comment ID.
$dataarrayComment data.

Wywołanie

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

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

Popularne w tej kategorii