Hello friends,
I tried the Icon Picker field and it’s documentation, but I found something may be a mistake.
If you are using return type of “Array” instead of “String”, when you add value from (Media Library) the Attachment ID code (( $attachment_id = $icon[‘value’]; )) is not true, I used (( $attachment_id = $icon[‘value’][‘id’]; )) because the ” $attachment_id = $icon[‘value’]; ” is an Array not a single value.
This topic is just for helping.
Thank you.