File tree 3 files changed +7
-5
lines changed 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 18
18
clone the project into your plugin folder:
19
19
20
20
``` shell
21
- git clone https://github.com/erikyo /typescript-wp-block.git
21
+ git clone https://github.com/your-username /typescript-wp-block.git
22
22
```
23
23
Then:
24
24
- Rename the plugin folder with the chosen plugin name slug
Original file line number Diff line number Diff line change 6
6
" Erik Golinelli <[email protected] > (https://codekraft.it/)" ,
7
7
" John Hooks <[email protected] > (https://johnhooks.io/)"
8
8
],
9
- "homepage" : " https://github.com/erikyo /typescript-wp-block#readme" ,
9
+ "homepage" : " https://github.com/wp-blocks /typescript-wp-block#readme" ,
10
10
"repository" : {
11
11
"type" : " git" ,
12
- "url" : " https://github.com/erikyo /typescript-wp-block.git"
12
+ "url" : " https://github.com/wp-blocks /typescript-wp-block.git"
13
13
},
14
- "bugs" : " https://github.com/erikyo /typescript-wp-block/issues" ,
14
+ "bugs" : " https://github.com/wp-blocks /typescript-wp-block/issues" ,
15
15
"license" : " GPL-2.0-or-later" ,
16
16
"main" : " ./build/boilerplate.js" ,
17
17
"typings" : " ./build/main.d.ts" ,
Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
3
* Plugin Name: Typescript WP Block Boilerplate
4
- * Plugin URI: https://github.com/erikyo /typescript-wp-block
4
+ * Plugin URI: https://github.com/wp-blocks /typescript-wp-block
5
5
* Description: WordPress block boilerplate in typescript
6
6
* Version: 0.0.1
7
7
* Author: codekraft
8
8
*/
9
9
10
+ if ( ! defined ( 'ABSPATH ' ) ) exit ;
11
+
10
12
add_action ( 'init ' , function () {
11
13
register_block_type ( __DIR__ );
12
14
} );
You can’t perform that action at this time.
0 commit comments