public static function transform_sub_post_fields( &$field ) {
		if ( is_array( $field['value'] ) ) {
			$data = [];
			foreach ( $field['value'] as $post_id ) {
				$data[] = Acf::get_post_field( $post_id );
			}
			$field['value'] = $data;
		} else {
			$field['value'] = Acf::get_post_field( $field['value'] );
		}
	}
public static function transform_sub_post_fields( &$field ) {
		if ( is_array( $field['value'] ) ) {
			$data = [];
			foreach ( $field['value'] as $post_id ) {
				$data[] = Acf::get_post_field( $post_id );
			}
			$field['value'] = $data;
		} else {
			$field['value'] = Acf::get_post_field( $field['value'] );
		}
	}
public static function transform_sub_post_fields ( & $ field ) { if ( is_array ( $ field [ 'value' ] ) ) { $ data = [ ] ; foreach ( $ field [ 'value' ] as $ post_id ) { $ data [ ] = Acf :: get_post_field ( $ post_id ) ; } $ field [ 'value' ] = $ data ; } else { $ field [ 'value' ] = Acf :: get_post_field ( $ field [ 'value' ] ) ; } }
Transform to get the WP and ACF fields of the sub post.

@param array $field The field.
@return array
Transform to get the WP and ACF fields of the sub post .