I need to apply a function to a variable that returns this array:
"content_block_images": [
{
"image": 10741
},
{
"image": 10742
}
]
But this function only accepts that you enter the id simply that they would be these 10741. As the function accepts it would be so function (10741), some solution? PS: I need the data as they are in json because this I have to return in an API the only thing I want to do is that instead of the id the url of the image is shown for which you have to use this function wp_get_attachment_url ().
And what I'm trying to convert to url is a multidimensional array