akcjaod 4.7.0
rest_delete_comment
Opis — z kodu źródłowego
Fires after a comment is deleted via the REST API.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$comment | \WP_Comment | The deleted comment data. |
$response | \WP_REST_Response | The response returned from the API. |
$request | \WP_REST_Request | The request sent to the API. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'rest_delete_comment', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'rest_delete_comment', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii