rep__get_malcolm_image()

This function takes a single argument,  $value, and returns a string representing a URL link to a Malcolm image.

Namespace

REP_Malcolm

Return

string

Extracted URL of main images

Source

File: \includes\rep-helper-functions.php

function rep__get_malcolm_image($value){ 
    $link = "";

    $image = is_array( $value ) ? $value : maybe_unserialize($value);
    
    if( ! empty($image) && is_array( $image ) ){
        $link = lp__array_key_value('link', $image, "");
    }

    return $link;
}