IP Resources

wp:post-type

Register a new custom post type.

Complete: Ready for use.

yo wp:post-type

Prompts

Text domain

The text domain of the current site.


Singular name

The singular name label for the post type.


Plural name

The plural name label for the post type.


Create a single template?

If set to true, a single template will be created for the post type.


Create an archive template?

If set to true, a basic archive template will be created for the post type.


Options

--textDomain

The text domain of the current site − this can be used in place of the corresponding prompt.


--singularName

The singular name label for the post type − this can be used in place of the corresponding prompt.


--pluralName

The plural name label for the post type − this can be used in place of the corresponding prompt.


--singleTemplate

If set to true, a single template will be created for the post type − this can be used in place of the corresponding prompt.


--archiveTemplate

If set to true, a basic archive template will be created for the post type − this can be used in place of the corresponding prompt.