akcjaod 2.9.0
trashed_post_comments
Opis — z kodu źródłowego
Fires after comments are sent to the Trash.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$post_id | int | Post ID. |
$statuses | array | Array of comment statuses. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'trashed_post_comments', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'trashed_post_comments', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii