Skip to content

Instantly share code, notes, and snippets.

@JodiWarren
Last active March 31, 2020 16:42
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JodiWarren/c5f7856f4f002b833662 to your computer and use it in GitHub Desktop.
Save JodiWarren/c5f7856f4f002b833662 to your computer and use it in GitHub Desktop.
Advanced Custom Fields PRO for Composer
{
"repositories": [
{
"type": "package",
"package": {
"name": "advanced-custom-fields/advanced-custom-fields-pro",
"version": "5.0",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://connect.advancedcustomfields.com/index.php?p=pro&a=download&k=yourkeyhere&t=versionnumberhere"
}
}
}
],
"require": {
"advanced-custom-fields/advanced-custom-fields-pro": "^5.0"
}
}
@JodiWarren
Copy link
Author

To use, add this object to the repositories array in your composer.json. Be sure to replace yourkeyhere with your ACF product key and versionnumberhere with your version number. That latter part is necessary because Composer will not re-download a new file for updates if it doesn't see a new URL.

After doing this, run composer install.

@PhilippBaschke
Copy link

You could try https://github.com/PhilippBaschke/acf-pro-installer if you do not want to commit your key (sorry for the shameless promotion 😁).

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