_navigation_markup

Private AccessPrivate Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

SummerySummery

Wraps passed links in navigational markup.

Syntax

_navigation_markup( string $links, string $class = 'posts-navigation', string $screen_reader_text = '', string $aria_label = '' )

ParametersParameters

$links

(string) (Required) Navigational links.

$class

(string) (Optional) Custom class for the nav element. Default: 'posts-navigation'.

Default value: 'posts-navigation'

$screen_reader_text

(string) (Optional) Screen reader text for the nav element. Default: 'Posts navigation'.

Default value: ''

$aria_label

(string) (Optional) ARIA label for the nav element. Default: same value as $screen_reader_text.

Default value: ''

ReturnReturn

(string) Navigation template tag.

SourceSource

File: wp-includes/link-template.php


			

ChangelogChangelog

Changelog
Version Description
5.3.0 Added the aria_label parameter.
4.1.0 Introduced.
Scroll to Top