navigation_widgets_format filter-hookWP 5.5.0

Filters the HTML format of widgets with navigation links.

Usage

add_filter( 'navigation_widgets_format', 'wp_kama_navigation_widgets_format_filter' );

/**
 * Function for `navigation_widgets_format` filter-hook.
 * 
 * @param string $format The type of markup to use in widgets with navigation links. Accepts 'html5', 'xhtml'.
 *
 * @return string
 */
function wp_kama_navigation_widgets_format_filter( $format ){

	// filter...
	return $format;
}
$format(string)
The type of markup to use in widgets with navigation links. Accepts 'html5', 'xhtml'.

Changelog

Since 5.5.0 Introduced.

Where the hook is called

WP_Nav_Menu_Widget::widget()
navigation_widgets_format
WP_Widget_RSS::widget()
navigation_widgets_format
WP_Widget_Categories::widget()
navigation_widgets_format
WP_Widget_Recent_Comments::widget()
navigation_widgets_format
WP_Widget_Tag_Cloud::widget()
navigation_widgets_format
WP_Widget_Meta::widget()
navigation_widgets_format
WP_Widget_Archives::widget()
navigation_widgets_format
WP_Widget_Pages::widget()
navigation_widgets_format
WP_Widget_Recent_Posts::widget()
navigation_widgets_format
wp-includes/widgets/class-wp-nav-menu-widget.php 72
$format = apply_filters( 'navigation_widgets_format', $format );
wp-includes/widgets/class-wp-widget-rss.php 124
$format = apply_filters( 'navigation_widgets_format', $format );
wp-includes/widgets/class-wp-widget-categories.php 117
$format = apply_filters( 'navigation_widgets_format', $format );
wp-includes/widgets/class-wp-widget-recent-comments.php 131
$format = apply_filters( 'navigation_widgets_format', $format );
wp-includes/widgets/class-wp-widget-tag-cloud.php 99
$format = apply_filters( 'navigation_widgets_format', $format );
wp-includes/widgets/class-wp-widget-meta.php 61
$format = apply_filters( 'navigation_widgets_format', $format );
wp-includes/widgets/class-wp-widget-archives.php 130
$format = apply_filters( 'navigation_widgets_format', $format );
wp-includes/widgets/class-wp-widget-pages.php 98
$format = apply_filters( 'navigation_widgets_format', $format );
wp-includes/widgets/class-wp-widget-recent-posts.php 100
$format = apply_filters( 'navigation_widgets_format', $format );

Where the hook is used in WordPress

Usage not found.