akcjaod 2.9.0
trash_post_comments
Opis — z kodu źródłowego
Fires before comments are sent to the Trash.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$post_id | int | Post ID. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_action( 'trash_post_comments', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_action( 'trash_post_comments', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii