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

get_featured_collection_categories()

Description

Get featured collection categories

on the admin_group_permissions.php where we want to see all available featured collection categories).

Parameters

ColumnTypeDefaultDescription
$parent integer The ref of the parent collection.
$ctx array Extra context for get_featured_collections(). Mostly used for overriding access control (e.g

Return

array

Location

include/collections_functions.php lines 4593 to 4596

Definition

 
function get_featured_collection_categories(int $parent, array $ctx)
    {
    return 
array_values(array_filter(get_featured_collections($parent$ctx), "is_featured_collection_category"));
    }

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