Skip to content

Commit

Permalink
Merge pull request #35 from alleyinteractive/post-type-select-filter
Browse files Browse the repository at this point in the history
Post Type Select Filter
  • Loading branch information
srtfisher authored May 12, 2023
2 parents 0d5f401 + fbed1ce commit 1f33399
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/loader/class-post-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,12 @@ protected function base_settings(): array {
'post_type' => new Fieldmanager_Select(
[
'label' => __( 'Post Type', 'feed-consumer' ),
'options' => collect( get_post_types( [ 'public' => true ], 'objects' ) )
->pluck( 'label', 'name' )
->all(),
'options' => apply_filters(
'feed_consumer_post_types',
collect( get_post_types( [ 'public' => true ], 'objects' ) )
->pluck( 'label', 'name' )
->all()
),
],
),
'post_status' => new Fieldmanager_Select(
Expand Down

0 comments on commit 1f33399

Please sign in to comment.