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 4861 to 4864

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 21st April 2021 19:05 Europe/London time based on the source file dated 19th April 2021 16:50 Europe/London time.