From 7f0f0942742d31ce4891601b80d14a58bcf31374 Mon Sep 17 00:00:00 2001 From: Belghiti Alaoui Date: Wed, 17 Feb 2016 16:10:05 +0100 Subject: [PATCH] Update to get acf in taxonomies addACFDataTermV2 function don't add acf to taxonomies term i suppose with get_taxonomies() it will be better. tell me if i miss something or there is other way to get this data. thanks. --- acf-to-wp-api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acf-to-wp-api.php b/acf-to-wp-api.php index 6be2964..a84d45f 100644 --- a/acf-to-wp-api.php +++ b/acf-to-wp-api.php @@ -275,13 +275,13 @@ function addACFDataPostV2cb($object, $fieldName, $request) { /** * Registers the `acf` field against taxonomy terms - * + * get all registred taxonomies with get_taxonomies() * @return void * * @since 1.3.0 */ function addACFDataTermV2() { - register_api_field( 'term', + register_api_field( get_taxonomies(), 'acf', array( 'get_callback' => array( $this, 'addACFDataTermV2cb' ),