Clanbite

section_groups_for_extension_tree( string $root_slug, Skeleton $root, array $by_slug, array $children_by_parent, Loader $loader ): array<int, array<string, mixed>>

Collect settings section groups for an extension and its descendants (parent_slug tree).

protected

Class: Kernowdev\Clanbite\Admin\Admin_Rest

Parameters

$root_slug (string) Required

Slug of the root extension.

$root (Skeleton) Required

Root extension instance.

$by_slug (array<string, Skeleton>) Required

All extensions keyed by slug.

$children_by_parent (array<string, array<int, string>>) Required

Child slugs keyed by parent slug.

$loader (Loader) Required

Extension install state.

Returns

array<int, array<string, mixed>>

Defined in inc/admin/class-admin-rest.php

Changelog

VersionDescription
1.3.0Updated.