Skip to content

Commit ab12dee

Browse files
committed
Update scaffold command examples
1 parent 8aa906c commit ab12dee

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ wp scaffold
2121

2222
**EXAMPLES**
2323

24-
# Generate a new plugin with unit tests
24+
# Generate a new plugin with unit tests.
2525
$ wp scaffold plugin sample-plugin
2626
Success: Created plugin files.
2727
Success: Created test files.
2828

29-
# Generate theme based on _s
29+
# Generate theme based on _s.
3030
$ wp scaffold _s sample-theme --theme_name="Sample Theme" --author="John Doe"
3131
Success: Created theme 'Sample Theme'.
3232

33-
# Generate code for post type registration in given theme
33+
# Generate code for post type registration in given theme.
3434
$ wp scaffold post-type movie --label=Movie --theme=simple-life
35-
Success: Created /var/www/example.com/public_html/wp-content/themes/simple-life/post-types/movie.php
35+
Success: Created '/var/www/example.com/public_html/wp-content/themes/simple-life/post-types/movie.php'.
3636

3737

3838

@@ -93,9 +93,9 @@ wp scaffold block <slug> [--title=<title>] [--dashicon=<dashicon>] [--category=<
9393

9494
**Warning: `wp scaffold block` is deprecated.**
9595

96-
The official script to generate a block is the [@wordpress/create-block](https://developer.wordpress.org/block-editor/designers-developers/developers/packages/packages-create-block/) package.
96+
The official script to generate a block is the [@wordpress/create-block](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-create-block/) package.
9797

98-
See the [Create a Block tutorial](https://developer.wordpress.org/block-editor/getting-started/create-block/) for a complete walk-through.
98+
See the [Create a Block tutorial](https://developer.wordpress.org/block-editor/getting-started/tutorial/) for a complete walk-through.
9999

100100
**OPTIONS**
101101

@@ -274,7 +274,7 @@ The following files are generated by default:
274274
* `tests/test-sample.php` is a sample file containing the actual tests.
275275
* `.phpcs.xml.dist` is a collection of PHP_CodeSniffer rules.
276276

277-
Learn more from the [plugin unit tests documentation](https://make.wordpress.org/cli/handbook/plugin-unit-tests/).
277+
Learn more from the [plugin unit tests documentation](https://make.wordpress.org/cli/handbook/misc/plugin-unit-tests/).
278278

279279
**ENVIRONMENT**
280280

@@ -412,7 +412,7 @@ The following files are generated by default:
412412
* `tests/test-sample.php` is a sample file containing the actual tests.
413413
* `.phpcs.xml.dist` is a collection of PHP_CodeSniffer rules.
414414

415-
Learn more from the [plugin unit tests documentation](https://make.wordpress.org/cli/handbook/plugin-unit-tests/).
415+
Learn more from the [plugin unit tests documentation](https://make.wordpress.org/cli/handbook/misc/plugin-unit-tests/).
416416

417417
**ENVIRONMENT**
418418

src/Scaffold_Command.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@
88
*
99
* ## EXAMPLES
1010
*
11-
* # Generate a new plugin with unit tests
11+
* # Generate a new plugin with unit tests.
1212
* $ wp scaffold plugin sample-plugin
1313
* Success: Created plugin files.
1414
* Success: Created test files.
1515
*
16-
* # Generate theme based on _s
16+
* # Generate theme based on _s.
1717
* $ wp scaffold _s sample-theme --theme_name="Sample Theme" --author="John Doe"
1818
* Success: Created theme 'Sample Theme'.
1919
*
20-
* # Generate code for post type registration in given theme
20+
* # Generate code for post type registration in given theme.
2121
* $ wp scaffold post-type movie --label=Movie --theme=simple-life
22-
* Success: Created /var/www/example.com/public_html/wp-content/themes/simple-life/post-types/movie.php
22+
* Success: Created '/var/www/example.com/public_html/wp-content/themes/simple-life/post-types/movie.php'.
2323
*
2424
* @package wp-cli
2525
*/
@@ -206,9 +206,9 @@ private function scaffold( $slug, $assoc_args, $defaults, $subdir, $templates )
206206
*
207207
* **Warning: `wp scaffold block` is deprecated.**
208208
*
209-
* The official script to generate a block is the [@wordpress/create-block](https://developer.wordpress.org/block-editor/designers-developers/developers/packages/packages-create-block/) package.
209+
* The official script to generate a block is the [@wordpress/create-block](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-create-block/) package.
210210
*
211-
* See the [Create a Block tutorial](https://developer.wordpress.org/block-editor/getting-started/create-block/) for a complete walk-through.
211+
* See the [Create a Block tutorial](https://developer.wordpress.org/block-editor/getting-started/tutorial/) for a complete walk-through.
212212
*
213213
* ## OPTIONS
214214
*
@@ -710,7 +710,7 @@ public function plugin( $args, $assoc_args ) {
710710
* * `tests/test-sample.php` is a sample file containing the actual tests.
711711
* * `.phpcs.xml.dist` is a collection of PHP_CodeSniffer rules.
712712
*
713-
* Learn more from the [plugin unit tests documentation](https://make.wordpress.org/cli/handbook/plugin-unit-tests/).
713+
* Learn more from the [plugin unit tests documentation](https://make.wordpress.org/cli/handbook/misc/plugin-unit-tests/).
714714
*
715715
* ## ENVIRONMENT
716716
*
@@ -762,7 +762,7 @@ public function plugin_tests( $args, $assoc_args ) {
762762
* * `tests/test-sample.php` is a sample file containing the actual tests.
763763
* * `.phpcs.xml.dist` is a collection of PHP_CodeSniffer rules.
764764
*
765-
* Learn more from the [plugin unit tests documentation](https://make.wordpress.org/cli/handbook/plugin-unit-tests/).
765+
* Learn more from the [plugin unit tests documentation](https://make.wordpress.org/cli/handbook/misc/plugin-unit-tests/).
766766
*
767767
* ## ENVIRONMENT
768768
*

0 commit comments

Comments
 (0)