Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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 5724 to 5727

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 19th March 2024 06:05 Europe/London time based on the source file dated 15th March 2024 17:00 Europe/London time.