Get ACF Fields Recursively
- Copy the
acf-to-rest-api-recursive
folder into yourwp-content/plugins
folder - Activate the
ACF to REST API Recursive
plugin via the plugin admin page
Filter | Argument(s) |
---|---|
acf/rest_api/recursive/types | array $types |
How to use:
add_filter( 'acf/rest_api/recursive/types', function( $types ) {
if ( isset( $types['post'] ) ) {
unset( $types['post'] );
}
return $types;
} );