private static function get_all_fields( $target_id = 0 ) {
		$data = [];

		$field_objs = get_field_objects( $target_id );

		if ( $field_objs ) {
			foreach ( $field_objs as $field_name => $field_obj ) {
				$value = self::get_single_field( $target_id, $field_obj );

				$group_slug = self::get_group_slug( $field_obj['parent'] );

				if ( $group_slug ) {
					$data[ $group_slug ][ $field_name ] = $value;
				} else {
					$data[ $field_name ] = $value;
				}
			}
		}

		return $data;
	}
private static function get_all_fields( $target_id = 0 ) {
		$data = [];

		$field_objs = get_field_objects( $target_id );

		if ( $field_objs ) {
			foreach ( $field_objs as $field_name => $field_obj ) {
				$value = self::get_single_field( $target_id, $field_obj );

				$group_slug = self::get_group_slug( $field_obj['parent'] );

				if ( $group_slug ) {
					$data[ $group_slug ][ $field_name ] = $value;
				} else {
					$data[ $field_name ] = $value;
				}
			}
		}

		return $data;
	}
private static function get_all_fields ( $ target_id = 0 ) { $ data = [ ] ; $ field_objs = get_field_objects ( $ target_id ) ; if ( $ field_objs ) { foreach ( $ field_objs as $ field_name => $ field_obj ) { $ value = self :: get_single_field ( $ target_id , $ field_obj ) ; $ group_slug = self :: get_group_slug ( $ field_obj [ 'parent' ] ) ; if ( $ group_slug ) { $ data [ $ group_slug ] [ $ field_name ] = $ value ; } else { $ data [ $ field_name ] = $ value ; } } } return $ data ; }
Get all the fields for the target object.

@param int $target_id	The id of the target object.
@return array
Get all the fields for the target object .