Create a boilerplate WordPress global custom page template within the active Wonderpress-friendly theme.
Subcommands
If no subcommand
is provided, Wonderpress will default to create
.
create
Create a WordPress boilerplate custom page template within the active Wonderpress-friendly theme.
Options
--dir=<directory>
A relative path to a directory with a valid .wonderpressrc
file. Defaults to the current directory.
--name=<name>
(or -n
)
Required. The lowercase, dash-separated name of the template to create. Do no include the word “template”, as it will automatically be prepended.
Examples
# Create a custom page template in the current Wonderpress installation $ wonderpress template create -n home Wonderpress SUCCESS: template-home.php was created!