mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-07-11 18:56:14 +09:00
Documentation and output for custom post types
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user