Submenu
in package
Helper methods for submenu functionality
Table of Contents
- data() : object
- render() : string
- mapChildren() : array<string|int, mixed>
Methods
data()
public
static data([WP_Post|null $submenu_for = null ]) : object
Parameters
- $submenu_for : WP_Post|null = null
Return values
object —render()
public
static render([string $align = 'right' ][, WP_Post|null $submenu_for = null ][, array<string|int, mixed> $prepend_items = [] ][, array<string|int, mixed> $append_items = [] ]) : string
Parameters
- $align : string = 'right'
- $submenu_for : WP_Post|null = null
- $prepend_items : array<string|int, mixed> = []
- $append_items : array<string|int, mixed> = []
Return values
string —mapChildren()
private
static mapChildren(mixed $id, mixed $parent_children, mixed $posts_by_id) : array<string|int, mixed>
Parameters
- $id : mixed
- $parent_children : mixed
- $posts_by_id : mixed