navigation_markup_template
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters( 'navigation_markup_template', string $template, string $css_class )
Описание
Примечание: отфильтрованный HTML шаблона должен содержать спецификаторы для класса навигации (%1$s), значения screen-reader-text (%2$s), места размещения ссылок навигации (%3$s) и текста ARIA-метки, если screen-reader-text для этого не подходит (%4$s):
Оригинал (английский)
Note: The filtered template HTML must contain specifiers for the navigation class (%1$s), the screen-reader-text value (%2$s), placement of the navigation links (%3$s), and ARIA label text if screen-reader-text does not fit that (%4$s):
<nav class="navigation %1$s" aria-label="%4$s">
<h2 class="screen-reader-text">%2$s</h2>
<div class="nav-links">%3$s</div>
</nav>
Фильтруемое значение
Параметры
$template
string
обязательный
$css_class
string
обязательный
Исходный код
wp-includes/link-template.php:3064
$template = apply_filters( 'navigation_markup_template', $template, $css_class );
История изменений
| Версия | Описание |
|---|---|
| 4.4.0 | Introduced. |

