WP Manifestindependent plugin directory
manifest / integrations / acf-to-rest-api-recursive

ACF to REST API Recursive

Get ACF fields recursively

★ 44stars
2.5kcomposer installs

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/airesvsg/acf-to-rest-api-recursive/archive/refs/heads/master.zip

On Packagist as airesvsg/acf-to-rest-api-recursive:

composer require airesvsg/acf-to-rest-api-recursive
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Get ACF Fields Recursively

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:

add_filter( 'acf/rest_api/recursive/types', function( $types ) {
    if ( isset( $types['post'] ) ) {
        unset( $types['post'] );
    }

    return $types;
} );