navigation_widgets_format WordPress Filter Hook

The navigation_widgets_format hook is used to format the navigation widgets on a WordPress site. This hook is called by the_widget() function.

apply_filters( 'navigation_widgets_format', string $format ) #

Filters the HTML format of widgets with navigation links.


Parameters

$format

(string)The type of markup to use in widgets with navigation links. Accepts 'html5', 'xhtml'.


Top ↑

Source

File: wp-includes/widgets/class-wp-nav-menu-widget.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.