Skip to content

Commit

Permalink
Merge pull request #46 from eXolnet/hotfix/link-select-custom-post-type
Browse files Browse the repository at this point in the history
Link Select : Get post type that are glutenblock ready but make sure …
  • Loading branch information
Gandhi11 authored Mar 20, 2020
2 parents 1dd3384 + 1120720 commit 706742e
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 706742e

Please sign in to comment.