rep__get_placeholder_image()

This function, is designed to retrieve a placeholder image URL based on the provided placeholder type.

Namespace

REP_Malcolm

Parameters

$type

string

Placeholder type.

Return

string

Placeholder image URL.

Source

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

function rep__get_placeholder_image( $type="" ){ 
    $placeholder = null;

    if( $type ){
        $type_placeholder = lp__get_field_value( REP__PREFIX."_{$type}_image_placeholder", 'option' );
        $placeholder = $type_placeholder ? $type_placeholder : $placeholder;
    }
    
    return $placeholder;
}