Last active
May 29, 2023 06:40
-
-
Save walterebert/6c591d59f04a5812cad1 to your computer and use it in GitHub Desktop.
WordPress: Install Advanced Custom Fields (Pro) with Composer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type" : "project", | |
"minimum-stability": "dev", | |
"prefer-stable": true, | |
"config": { | |
"secure-http": false | |
}, | |
"repositories" : [ | |
{ | |
"type" :"composer", | |
"url" :"https://wpackagist.org" | |
}, | |
{ | |
"type": "package", | |
"package": { | |
"name": "advanced-custom-fields/advanced-custom-fields-pro", | |
"version": "dev-master", | |
"type": "wordpress-plugin", | |
"dist": { | |
"type": "zip", | |
"url": "https://connect.advancedcustomfields.com/index.php?p=pro&a=download&k=<your license key>" | |
} | |
} | |
} | |
], | |
"require" : { | |
"composer/installers" : "*", | |
"johnpbloch/wordpress" : "*", | |
"wpackagist-plugin/advanced-custom-fields" : "*", | |
"advanced-custom-fields/advanced-custom-fields-pro" : "*" | |
}, | |
"extra" : { | |
"wordpress-install-dir" : "web/wp", | |
"installer-paths" : { | |
"web/wp-content/mu-plugins/{$name}/" : ["type:wordpress-muplugin"], | |
"web/wp-content/plugins/{$name}/" : ["type:wordpress-plugin"], | |
"web/wp-content/themes/{$name}/" : ["type:wordpress-theme"] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could try my composer plugin (https://github.com/PhilippBaschke/acf-pro-installer) if you do not want to commit your license key. 😊