akcjaod 1.2.0
delete_comment
Opis — z kodu źródłowego
Fires immediately before a comment is deleted from the database.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$comment_id | string | The comment ID as a numeric string. |
$comment | \WP_Comment | The comment to be deleted. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'delete_comment', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'delete_comment', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii