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

is_featured_collection_category()

Description

Check if a collection is a featured collection category

Parameters

ColumnTypeDefaultDescription
$fc array A featured collection data structure as returned by {@see get_featured_collections()}

Return

boolean

Location

include/collections_functions.php lines 4605 to 4613

Definition

 
function is_featured_collection_category(array $fc)
    {
    if(!isset(
$fc["type"]) || !isset($fc["has_resources"]))
        {
        return 
false;
        }

    return (
$fc["type"] == COLLECTION_TYPE_FEATURED && $fc["has_resources"] == 0);
    }

This article was last updated 20th January 2021 18:35 Europe/London time based on the source file dated 19th January 2021 16:15 Europe/London time.