rep__get_malcolm_images()
This function takes a single argument, $value, which is expected to be an array of images in Malcolm format.
Namespace
REP_Malcolm
Return
array
An array containing URLs of malcolm images
Source
File: \includes\rep-helper-functions.php
function rep__get_malcolm_images($value){
$images = is_array( $value ) ? $value : maybe_unserialize($value);
if( empty($images) || ! is_array($images) ) return;
$images_link = [];
foreach($images as $image){
$link = rep__get_malcolm_image( $image );
if( $link ) $images_link[] = $link;
}
return $images_link;
}