Skip to content

v1.0.1

Latest
Compare
Choose a tag to compare
@tyrann0us tyrann0us released this 11 Apr 12:50
· 8 commits to master since this release
2e739e8

Filter available post types:

add_filter( 'post_type_selector_post_types', function( $post_types, $field ) {
	$post_types['foo'] = get_post_type_object( 'foo' );
	unset( $post_types['post'] );
	return $post_types;
}, 10, 2 );