An open API service indexing awesome lists of open source software.

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.

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