Skip to content

Commit 0abcbff

Browse files
committed
Rename the package.
1 parent f45af36 commit 0abcbff

File tree

6 files changed

+11
-9
lines changed

6 files changed

+11
-9
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "johnbillion/wp-hooks-generator",
2+
"name": "wp-hooks/generator",
33
"description": "Generates a JSON representation of the WordPress actions and filters in your code",
44
"type": "library",
55
"license": "GPL-3.0-or-later",

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
"private": true,
66
"repository": {
77
"type": "git",
8-
"url": "git+https://github.com/johnbillion/wp-hooks-generator.git"
8+
"url": "git+https://github.com/wp-hooks/generator.git"
99
},
1010
"author": "John Blackbourn",
1111
"license": "GPL-3.0-or-later",
1212
"bugs": {
13-
"url": "https://github.com/johnbillion/wp-hooks-generator/issues"
13+
"url": "https://github.com/wp-hooks/generator/issues"
1414
},
1515
"dependencies": {
1616
"json-schema-to-typescript": "^7.1"
1717
},
1818
"scripts": {
1919
"generate-interfaces": "json2ts --input schema.json --output=interface/index.d.ts"
2020
},
21-
"homepage": "https://github.com/johnbillion/wp-hooks-generator#readme"
21+
"homepage": "https://github.com/wp-hooks/generator#readme"
2222
}

readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ Note: If you just want the hook files without generating them yourself, use the
88

99
## Installation
1010

11-
composer require johnbillion/wp-hooks-generator
11+
```shell
12+
composer require wp-hooks/generator
13+
```
1214

1315
## Generating the Hook Files
1416

schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"$id": "https://github.com/johnbillion/wp-hooks-generator/blob/0.8.0/schema.json",
3+
"$id": "https://github.com/wp-hooks/generator/blob/0.8.0/schema.json",
44
"title": "HooksContainer",
55
"description": "The container for the list of hooks",
66
"type": "object",

src/generate.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ function parse_aliases( string $html ) : array {
268268
} ) );
269269

270270
$actions = [
271-
'$schema' => 'https://raw.githubusercontent.com/johnbillion/wp-hooks-generator/0.8.0/schema.json',
271+
'$schema' => 'https://raw.githubusercontent.com/wp-hooks/generator/0.8.0/schema.json',
272272
'hooks' => $actions,
273273
];
274274

@@ -280,7 +280,7 @@ function parse_aliases( string $html ) : array {
280280
} ) );
281281

282282
$filters = [
283-
'$schema' => 'https://raw.githubusercontent.com/johnbillion/wp-hooks-generator/0.8.0/schema.json',
283+
'$schema' => 'https://raw.githubusercontent.com/wp-hooks/generator/0.8.0/schema.json',
284284
'hooks' => $filters,
285285
];
286286

0 commit comments

Comments
 (0)