acf-extended folder to the /wp-content/plugins/ directoryThis solution uses the third-party WordPress Packagist library.
1. Create the composer file
Create/update your composer.json file with the following configuration:
{
"repositories":[
{
"type":"composer",
"url":"https://wpackagist.org",
"only": [
"wpackagist-plugin/*"
]
}
],
"require": {
"wpackagist-plugin/acf-extended":"*"
},
"config": {
"allow-plugins": {
"composer/installers": true
}
}
}2. Run the installer
Run the command composer install or composer update to install the plugin.
acf-extended-pro folder to the /wp-content/plugins/ directoryThis solution uses the third-party Composer WP Pro Plugins library.
1. Activate your domain
First, you need to activate your domain on your license. Head over your Account Dashboard and click on the “Domain: 0/1” button next to your license to activate a domain. Make sure to only use the hostname, for example: www.your-site.com or your-site.com
2. Create an environment file
Create an .env file at the root of your WordPress install, where you run your composer, with the following content. Make sure to use the same domain as the one activated via your dashboard.
ACFE_PRO_KEY=YOUR_LICENSE_KEY_HERE
ACFE_PRO_URL=www.your-site.com3. Create an auth file (optional)
Composer will ask your ACF Extended credentials during the install/update. If you want to avoid that, and make the process automatic, then you must create an auth.json file at the root of your WordPress install with the following content:
{
"http-basic": {
"www.acf-extended.com": {
"username": "[email protected]",
"password": "your_password"
}
}
}4. Create the composer file
Create/update your composer.json file with the following configuration:
The "version": "0.9.2.3" matters and only support the latest version, you cannot download a previous version at the moment.
{
"repositories": [
{
"type": "package",
"package": {
"name": "junaidbhura/acf-extended-pro",
"version": "0.9.2.3",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://www.acf-extended.com/"
},
"require": {
"junaidbhura/composer-wp-pro-plugins": "*"
}
}
}
],
"require": {
"junaidbhura/acf-extended-pro": "*",
"composer/installers": "^2.3"
},
"extra": {
"installer-paths": {
"wp-content/plugins/{$name}/": ["type:wordpress-plugin"]
}
},
"config": {
"allow-plugins": {
"junaidbhura/composer-wp-pro-plugins": true,
"composer/installers": true
}
}
}5. Run the installer
Run the command composer install or composer update to install the plugin.