Fires after a comment is deleted via the REST API.
$comment, $response, $request
Sortie :
@param WP_Comment $comment The deleted comment data. @param WP_REST_Response $response The response returned from the API. @param WP_REST_Request $request The request sent to the API.
// Ajouter une fonction au hook action 'rest_delete_comment'
add_action('rest_delete_comment', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($comment, $response, $request) {
// Votre code ici
error_log('Hook rest_delete_comment déclenché');
}
Chargement des actualités...