定制 underscoretw/scaffold 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

underscoretw/scaffold

最新稳定版本:v1.0.2

Composer 安装命令:

composer require underscoretw/scaffold

包简介

Generates starter themes from underscoretw.com via WP-CLI.

README 文档

README

A WP-CLI package that generates starter themes from underscoretw.com.

Installation

After installing WP-CLI, please run:

wp package install underscoretw/scaffold

Usage

Run the command without a slug to launch the interactive wizard:

wp scaffold _tw

LLMs or automated processes can generate themes using arguments:

wp scaffold _tw [<slug>] [--theme_name=<title>] [--prefix=<prefix>]
    [--theme_uri=<uri>] [--author=<full-name>] [--author_uri=<uri>]
    [--description=<text>] [--activate] [--enable-network] [--force]

All of the above arguments also work with the interactive wizard.

wp scaffold underscoretw is available as an alias.

Interactive Wizard

The wizard will prompt for:

  1. Theme name (required)
  2. Theme slug (derived from the name by default)
  3. Function prefix (derived from the slug by default)
  4. Author, author URI, theme URI, and description (all optional)

After collecting your inputs, the wizard displays a summary and asks for confirmation before generating the theme.

Options

Option Description
<slug> The slug for the new theme. If omitted, the interactive wizard is launched.
--theme_name=<title> Theme name. Derived from the slug when not set.
--prefix=<prefix> Function prefix for the theme. Derived from the slug when not set.
--theme_uri=<uri> Theme URI header value.
--author=<full-name> Author header value.
--author_uri=<uri> Author URI header value.
--description=<text> Description header value.
--activate Activate the theme after generating it.
--enable-network Enable the theme for the entire network after generating it.
--force Overwrite the theme directory if it already exists.

Examples

Generate a theme using the interactive wizard:

wp scaffold _tw

Generate a theme with default settings:

wp scaffold _tw my-theme

Generate a theme with custom options:

wp scaffold _tw my-theme --theme_name="My Theme" --author="Jane Doe" --description="A custom theme"

Generate and activate:

wp scaffold _tw my-theme --theme_name="My Theme" --activate

Overwrite an existing theme:

wp scaffold _tw my-theme --force

Credits

This package began as a fork of wp-cli/scaffold-command. Its wizard was inspired by npm init.

统计信息

  • 总下载量: 7
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固