Post Types
Custom post types can be created using the cli. The boilerplate is based on wp-cli
.
bash
forme make post-type FooBar
This will create the post type and eloquent classes for you, in app/Models/FooBarPostType.php
and app/Models/FooBar.php
respectively.
That's it, the post type should now be visible in WordPress admin, and accessible in your code via the repository, the Eloquent model or standard WP functions.
Go ahead and edit the classes if you need to make any changes.
TODO
Add further support defaults (e.g. category) as wp-cli boilerplate is a little light on that sort of thing