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 1 year 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 (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-01-02T09:12:12.000Z (over 4 years ago)
- Last Synced: 2025-03-28T13:44:22.265Z (about 1 year ago)
- Topics: acf-to-rest-api, fields, recursive, rest-api, wordpress-api
- Language: PHP
- Size: 5.86 KB
- Stars: 43
- Watchers: 1
- Forks: 7
- 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 page
Filters
====
| 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;
} );
```