Skip to content

Instantly share code, notes, and snippets.

@michaelbragg
Last active September 16, 2021 07:37
Show Gist options
  • Save michaelbragg/0c0826325ab561d1243ef2c89b99a289 to your computer and use it in GitHub Desktop.
Save michaelbragg/0c0826325ab561d1243ef2c89b99a289 to your computer and use it in GitHub Desktop.
Loading ACF Pro via Composer
{
"repositories": [
{
"type": "package",
"package": {
"name": "advanced-custom-fields/advanced-custom-fields-pro",
"version": "5.10.2",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://connect.advancedcustomfields.com/index.php?t=5.10.2&p=pro&a=download&k={API KEY}"
}
}
}
],
"require": {
"composer/installers": "1.12.0",
"advanced-custom-fields/advanced-custom-fields-pro": "5.10.2"
},
"extra": {
"installer-paths": {
"wp-content/plugins/{$name}/": [
"type:wordpress-plugin"
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment