Skip to content

airesvsg/acf-to-rest-api-recursive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ACF to REST API Recursive

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;
} );