akcjaod 1.2.0
edit_comment
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
| Parametr | Typ | Opis |
|---|---|---|
$comment_id | int | The comment ID. |
$data | array | Comment 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
}
// 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