Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

allowPromotedResources()

Description

Confirms whether a dash tile type allows for promoted resources

Parameters

ColumnTypeDefaultDescription
$tile_type string

Return

boolean

Location

include/dash_functions.php lines 1639 to 1649

Definition

 
function allowPromotedResources($tile_type)
    {
    if(
'' === trim($tile_type))
        {
        return 
false;
        }

    
$allowed_types = array('srch''fcthm');

    return 
in_array($tile_type$allowed_types);
    }

This article was last updated 24th November 2020 19:35 Europe/London time based on the source file dated 3rd November 2020 16:55 Europe/London time.