File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,19 @@ composer global require balbuf/composer-wp
19
19
composer install
20
20
```
21
21
22
+ Alternatively, you can include this step as a script that composer will execute before installing or updating
23
+ packages:
24
+
25
+ ``` json
26
+ "scripts" : {
27
+ "pre-cmd" : [
28
+ " composer global require balbuf/composer-wp"
29
+ ],
30
+ "pre-install-cmd" : " @pre-cmd" ,
31
+ "pre-update-cmd" : " @pre-cmd"
32
+ }
33
+ ```
34
+
22
35
## About
23
36
24
37
Similar to [ wpackagist] ( http://wpackagist.org/ ) , Composer-WP leverages the official WordPress SVN repositories
@@ -429,15 +442,17 @@ The built-in installer has the following properties:
429
442
meaning if you wish to use the sample WordPress themes (e.g. "twentysixteen") or plugins,
430
443
you'll have to require them separately in ` composer.json ` . In order to use this option,
431
444
the ` wordpress-path ` _ and_ ` wp-content-path ` properties must be defined (default values
432
- are considered).
445
+ are considered) and said paths must exist (e.g. there are packages that are installed to these
446
+ paths).
433
447
434
448
* ** mu-plugin-autoloader** (_ default:_ ` true ` )
435
449
436
450
This option allows you to enable or disable the included mu-plugins autoloader. If enabled,
437
451
all regular plugins installed in the mu-plugins directory will be automatically loaded in
438
452
WordPress in the order that they are defined in ` composer.json ` . Additionally, the composer
439
453
autoloader will be loaded into WordPress. In order to use this option, either the
440
- ` wp-content-path ` or ` wpmu-plugin-dir ` must be defined (default values are considered).
454
+ ` wp-content-path ` or ` wpmu-plugin-dir ` must be defined (default values are considered)
455
+ and must exist.
441
456
442
457
* ** autoloader-path**
443
458
You can’t perform that action at this time.
0 commit comments