Hi Dennis,
Thanks for the quick response! I was able to get what I need with these two hooks:
// include non-public post types
add_filter ( 'msls_supported_post_types', function( $post_types ) {
$post_types = array_merge(
[ 'post', 'page' ],
get_post_types( [ '_builtin' => false ], 'names', 'and' )
);
return $post_types;
}, 10 );
// add private pages (hierarchical post types) to the drop down
add_filter ( 'msls_meta_box_render_select_hierarchical', function( $args ) {
$args['post_status'] = [ 'publish', 'private' ];
return $args;
}, 10 );
For everyone interested: this might be better to just add a post type you need but not list all the not-built-in post types. Because sometimes there could be some unexpected and unwanted non-public post types in the list.
Like this:
// include exactly team_member post type
add_filter ( 'msls_supported_post_types', function( $post_types ) {
$post_types = array_merge(
[ 'post', 'page', 'team_member' ], // adding a particular post type
get_post_types( [ 'public' => true, '_builtin' => false ], 'names', 'and' )
);
return $post_types;
}, 10 );
Best,
-Nadia