diff --git a/src/Base/Repositories/AbstractRepository.php b/src/Base/Repositories/AbstractRepository.php index 2424f20..4b05e2e 100644 --- a/src/Base/Repositories/AbstractRepository.php +++ b/src/Base/Repositories/AbstractRepository.php @@ -235,7 +235,9 @@ public function transform(WP_Post $post) 'post_status' => $post->post_status ]; - $data = $this->assignFields($data, $post); + $data = apply_filters( 'owc/openkaarten/geodata/rest-add-fields', $data, $post ); + + $data = $this->assignFields($data, $post); return $data; }