One-click generators
Generators scaffold ready-to-edit snippets for common WordPress tasks so you start from working code, not a blank editor.
Available generators
- Redirect: map a source path to a destination URL with a 301 or 302 status.
- Custom post type: register a new post type by providing a slug, labels, and the features it supports.
- Custom taxonomy: add a taxonomy with a slug, set whether it is hierarchical, and attach it to one or more post types.
- Disable comments: turn comments off globally or for specific post types.
- Header / footer scripts: inject code into
wp_headorwp_footerwithout editing your theme.
All five generators are available in the free edition.
How it works
- Open the Generate page from the Snippets admin menu.
- Pick a generator from the picker.
- Fill in the form fields. Each generator asks only for the inputs it needs.
- Click Generate. SnipCraft creates a normal snippet pre-filled with the boilerplate code. You can edit it, set its scope, and add run-when conditions like any other snippet.
Pro
Pro adds the AI assistant (describe a snippet in plain English and SnipCraft Pro writes the code) and content-generation presets for seeding posts, terms, users, and WooCommerce products.Related
See snippet types to understand what code a generated snippet contains. The AI assistant covers the Pro describe-and-generate workflow in detail.