Skip to content

Commit

Permalink
fix: adding view path with incorrect filter (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
thorbrink authored Feb 27, 2024
1 parent f2a209a commit 425067b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/php/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ public function __construct()
));

// Add view paths
add_filter('Municipio/blade/view_paths', array($this, 'addViewPaths'), 2, 1);
add_action('template_redirect', function () {
if (get_post_type() === 'job-listing') {
add_filter('Municipio/viewPaths', array($this, 'addViewPaths'), 2, 1);
}
}, 10);


new \JobListings\Entity\Taxonomy(
Expand Down

0 comments on commit 425067b

Please sign in to comment.