CPT_Core
CPT_Core copied to clipboard
This is a helper class for creating custom post types.. I'm sure it doesn't cover everything. PRs welcome.
I have added a new CPT with CMB2 that allows the user to link 2 posts together. So you end up with the linked post ID in the primary post...
Would love to see an auto-loader like CMB2 that loads the latest version always.
I renamed the composer package name to webdevstudios/cpt_core to be more consistent with the git repository name and what's currently in https://github.com/WebDevStudios/Taxonomy_Core. I could go either way with it if...
i've seen this snippet and i think that will be useful if integrated in this library. http://wpsnipp.com/index.php/functions-php/wordpress-post-types-dashboard-at-glance-widget/
Ideal namespaces would be similar to the following: * `WebDevStudios\CPT_Core`
Glancing at the main plugin class, I see we have a set of sensible defaults for creating a new post type, but nothing for WP REST API settings (e.g., "show_in_rest")....