https://github.com/broskees/acf-separate-concerns
Separates ACF from the theme and into it's own directory. Requires acf-composer to be installed.
https://github.com/broskees/acf-separate-concerns
Last synced: 2 months ago
JSON representation
Separates ACF from the theme and into it's own directory. Requires acf-composer to be installed.
- Host: GitHub
- URL: https://github.com/broskees/acf-separate-concerns
- Owner: broskees
- License: mit
- Created: 2023-06-02T17:28:56.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-02T17:48:00.000Z (almost 2 years ago)
- Last Synced: 2025-01-20T08:12:11.214Z (4 months ago)
- Language: PHP
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ACF — Separate Concerns
## Installation
You can install this package with Composer:
```bash
composer require broskees/acf-separate-concerns
```You can publish the config file with:
```shell
$ wp acorn vendor:publish --provider="Broskees\AcfSeparateConcerns\Providers\AcfComposerServiceProvider"
```## Usage
This package is just a wrapper for ACF Composer to relocate ACF fields without changing the `ACORN_BASEPATH` constant.
This package is used identically, just reference [ACF Composer's Docs](https://github.com/log1x/acf-composer).
By default fields will be placed in the `${WP_CONTENT_DIR}/acf` directory. But this directory and be changed with the `acf_composer_path` filter.
### Example
```php