Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/airesvsg/acf-to-rest-api-recursive
Get ACF fields recursively
https://github.com/airesvsg/acf-to-rest-api-recursive
acf-to-rest-api fields recursive rest-api wordpress-api
Last synced: about 2 months ago
JSON representation
Get ACF fields recursively
- Host: GitHub
- URL: https://github.com/airesvsg/acf-to-rest-api-recursive
- Owner: airesvsg
- Created: 2018-04-03T15:50:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-01-02T09:12:12.000Z (almost 3 years ago)
- Last Synced: 2024-10-09T13:15:41.785Z (3 months ago)
- Topics: acf-to-rest-api, fields, recursive, rest-api, wordpress-api
- Language: PHP
- Size: 5.86 KB
- Stars: 43
- Watchers: 2
- Forks: 8
- Open Issues: 9
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
ACF to REST API Recursive
====
Get ACF Fields Recursively- [Installation](#installation)
- [Filters](#filters)Installation
====
1. Copy the `acf-to-rest-api-recursive` folder into your `wp-content/plugins` folder
2. Activate the `ACF to REST API Recursive` plugin via the plugin admin pageFilters
====
| Filter | Argument(s) |
|-----------|-----------|
| acf/rest_api/recursive/types | array $types |How to use:
```PHP
add_filter( 'acf/rest_api/recursive/types', function( $types ) {
if ( isset( $types['post'] ) ) {
unset( $types['post'] );
}return $types;
} );
```