WP HOOKS
akcjaod 4.7.0

rest_delete_comment

Args 3Plik wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Fires after a comment is deleted via the REST API.

Parametry

ParametrTypOpis
$comment\WP_CommentThe deleted comment data.
$response\WP_REST_ResponseThe response returned from the API.
$request\WP_REST_RequestThe 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
}

Popularne w tej kategorii