1. Home
  2. Docs
  3. Application Framework
  4. CLI Reference
  5. add-template


$ wp mwp add-template <slug> <name>

This command adds a new html template to your plugin.


<slug> (required) The slug (directory) of the plugin to add to
<name> (required) The name of the new template file


$ wp mwp add-template acmecompany-gizmo views/gizmo/main
Creating new template snippet...
Template added successfully.

Was this article helpful to you? Yes No

How can we help?