When not using ACF, if the field value is returned as an array or object, then it should be automatically converted to to a string.
An additional field argument should be implemented: separator="," which is used when joining the values.
Todo
[x] Utils\Str::anyToString signature should be changed to accept a delimiter, and level moved to the 3rd argument
[x] Utils\Str::anyToString should also integrate maybe_unserialize() to properly convert the value
[x] Make sure it's implemented in both Post\getCFValue and User\getCFValue
Describe the bug
When not using ACF, if the field value is returned as an array or object, then it should be automatically converted to to a string. An additional field argument should be implemented:
separator=","
which is used when joining the values.Todo
Utils\Str::anyToString
signature should be changed to accept a delimiter, and level moved to the 3rd argumentUtils\Str::anyToString
should also integratemaybe_unserialize()
to properly convert the valuePost\getCFValue
andUser\getCFValue
Reference ticket.