Collections functions
General functions
Render functions
Theme permission 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 5605 to 5608

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 4th October 2022 12:05 Europe/London time based on the source file dated 4th October 2022 09:50 Europe/London time.