From fd6f0d0c392a87a16a2140df36698418856854d9 Mon Sep 17 00:00:00 2001 From: Cristian Uibar Date: Mon, 15 Apr 2024 11:59:17 +0300 Subject: [PATCH] Fixes #187, allow users to extend package data --- src/Transformer/ComposerRepositoryTransformer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Transformer/ComposerRepositoryTransformer.php b/src/Transformer/ComposerRepositoryTransformer.php index f9671be..9e0e84e 100644 --- a/src/Transformer/ComposerRepositoryTransformer.php +++ b/src/Transformer/ComposerRepositoryTransformer.php @@ -180,6 +180,8 @@ protected function transform_item( Package $package ): array { } } + $data = apply_filters( 'satispress_package_repository_item', $data, $package ); + return $data; } }