Documentation and output for custom post types

This commit is contained in:
Will Boyd
2020-12-27 14:05:48 -05:00
parent d6ef25b764
commit 828230dedd
4 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ function getItemTypes(data, config) {
// effectively this will be 'post', 'page', and custom post types
const types = data.rss.channel[0].item
.map(item => item.post_type[0])
.filter(type => !['attachment', 'revision', 'nav_menu_item'].includes(type));
.filter(type => !['attachment', 'revision', 'nav_menu_item', 'custom_css', 'customize_changeset'].includes(type));
return [...new Set(types)]; // remove duplicates
} else {
// just plain old vanilla "post" posts