Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support discovery of unregistered post types #12

Open
bobbingwide opened this issue Jan 10, 2018 · 0 comments
Open

Support discovery of unregistered post types #12

bobbingwide opened this issue Jan 10, 2018 · 0 comments
Assignees

Comments

@bobbingwide
Copy link
Owner

bobbingwide commented Jan 10, 2018

On some sites custom post type data is created in wp_posts using a plugin or theme which is then deactivated. For security reasons the site no longer displays any UI for the content - admin or front-end.

It would be nice if this data could be discovered by oik-types. It would come in handy when upgrading a site and switching between plugins and themes.
In my current example, content was created using an event manager plugin.

The following SQL provided the details of the missing post types.

SELECT count(*), post_type FROM `wp_posts` group by post_type order by 1 desc

It turns out I was looking for tribe_events.

count(*) post_type  
482 revision
71 attachment
47 post
32 bp-email
29 clink
25 page
13 dpw_email
11 nav_menu_item
7 forum
6 topic
6 customize_changeset
4 tribe_events
3 tribe_venue
3 reply
3 tribe_organizer
2 oembed_cache
1 meetup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant