Skip to content

Commit

Permalink
Merge pull request #1221 from helsingborg-stad/chore/renaming-content…
Browse files Browse the repository at this point in the history
…-type-filter

chore: renaming content type filter
  • Loading branch information
NiclasNorin authored Jan 8, 2025
2 parents 3f7e50d + 6916387 commit 972e1cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions library/Controller/SingularPlace.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function init()
public function addHooks(): void
{
// Append location link to listing items
add_filter('Municipio/Controller/SingularContentType/listing', [$this, 'appendListItems'], 10, 2);
add_filter('Municipio/Controller/SingularPlace/listing', [$this, 'appendListItems'], 10, 2);
add_filter('Municipio/viewData', [$this, 'populatePostWithAdditionalPlaceViewData'], 10, 1);
}

Expand Down Expand Up @@ -172,7 +172,7 @@ private function createPlaceInfoList($fields)

// Apply filters to listing items
$list = apply_filters(
'Municipio/Controller/SingularContentType/listing',
'Municipio/Controller/SingularPlace/listing',
$list,
$fields
);
Expand Down
2 changes: 1 addition & 1 deletion library/PostDecorators/ApplyInfoListToPlace.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function apply(WP_Post $post): WP_Post
$list['website'] = $this->listingHelper::createListingItem(__('Visit website', 'municipio'), $fields['website'], ['src' => 'language']);
}

$post->placeInfo = apply_filters('Municipio/Controller/SingularContentType/listing', $list, $fields);
$post->placeInfo = apply_filters('Municipio/Controller/SingularPlace/listing', $list, $fields);

return $post;
}
Expand Down

0 comments on commit 972e1cd

Please sign in to comment.