Nav
in package
The main Navigation class.
Used for main Navigation this will load template part nav file.
Tags
Table of Contents
- $nav_args : mixed
- __construct() : mixed
- Initializes the class with default navigation settings.
- nav_menu() : mixed
- nav_default() : array<string|int, mixed>
Properties
$nav_args
protected
mixed
$nav_args
Methods
__construct()
Initializes the class with default navigation settings.
public
__construct([array<string|int, mixed> $args = [] ]) : mixed
This constructor sets up default arguments for a WordPress navigation menu. These defaults can be overridden
by passing an array of arguments to the constructor. The $nav_args
property is configured to define the
structure and behavior of the navigation menu, adhering to WordPress standards.
Parameters
- $args : array<string|int, mixed> = []
-
{ Optional. An array of arguments to customize the navigation menu settings.
Return values
mixed —nav_menu()
public
nav_menu([array<string|int, mixed> $nav_args = [] ]) : mixed
Parameters
- $nav_args : array<string|int, mixed> = []
Return values
mixed —nav_default()
protected
nav_default() : array<string|int, mixed>