Skip to content

Instantly share code, notes, and snippets.

@walterebert
Last active May 29, 2023 06:40
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save walterebert/6c591d59f04a5812cad1 to your computer and use it in GitHub Desktop.
Save walterebert/6c591d59f04a5812cad1 to your computer and use it in GitHub Desktop.
WordPress: Install Advanced Custom Fields (Pro) with Composer
{
"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"]
}
}
}
@PhilippBaschke
Copy link

You could try my composer plugin (https://github.com/PhilippBaschke/acf-pro-installer) if you do not want to commit your license key. 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment