Skip to content

Commit

Permalink
Link Select : Get post type that are glutenblock ready but make sure …
Browse files Browse the repository at this point in the history
…the public one are there too.
  • Loading branch information
Gandhi11 committed Mar 20, 2020
1 parent 1dd3384 commit 1120720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glutenblocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function glutenblocks_pre_init()
}

function gb_get_post_types() {
$post_types = get_post_types( ['glutenblock_rest' => true]);
$post_types = get_post_types( ['glutenblock_rest' => true, 'public' => true], 'names', 'or');
return array_keys($post_types);
}

Expand Down

0 comments on commit 1120720

Please sign in to comment.