Skip to content
This repository was archived by the owner on Sep 5, 2025. It is now read-only.

Commit 95e73f6

Browse files
authored
Add 7th step to search/replace
This will enable the `composer lint:wpcs` command to pass aside from 2 simple-to-fix doc comment errors
1 parent e8a5863 commit 95e73f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,15 @@ Installation
3131

3232
### Quick Start
3333

34-
Clone or download this repository, change its name to something else (like, say, `megatherium-is-awesome`), and then you'll need to do a six-step find and replace on the name in all the templates.
34+
Clone or download this repository, change its name to something else (like, say, `megatherium-is-awesome`), and then you'll need to do a seven-step find and replace on the name in all the templates.
3535

3636
1. Search for `'_s'` (inside single quotations) to capture the text domain and replace with: `'megatherium-is-awesome'`.
3737
2. Search for `_s_` to capture all the functions names and replace with: `megatherium_is_awesome_`.
3838
3. Search for `Text Domain: _s` in `style.css` and replace with: `Text Domain: megatherium-is-awesome`.
3939
4. Search for <code>&nbsp;_s</code> (with a space before it) to capture DocBlocks and replace with: <code>&nbsp;Megatherium_is_Awesome</code>.
4040
5. Search for `_s-` to capture prefixed handles and replace with: `megatherium-is-awesome-`.
4141
6. Search for `_S_` (in uppercase) to capture constants and replace with: `MEGATHERIUM_IS_AWESOME_`.
42+
7. Search for `name="text_domain" type="array" value="_s"` *within* the `phpcs.xml.dist` file and replace with `name="text_domain" type="array" value="megatherium-is-awesome"`.
4243

4344
Then, update the stylesheet header in `style.css`, the links in `footer.php` with your own information and rename `_s.pot` from `languages` folder to use the theme's slug. Next, update or delete this readme.
4445

0 commit comments

Comments
 (0)