navigation_widgets_format

navigation_widgets_format

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('navigation_widgets_format') is found 9 times:

  • /wp-includes/widgets/class-wp-nav-menu-widget.php line 72
    		 *
    		 * @param string $format The type of markup to use in widgets with navigation links.
    		 *                       Accepts 'html5', 'xhtml'.
    		 */
    		$format = apply_filters( 'navigation_widgets_format', $format );
    
    		if ( 'html5' === $format ) {
    			// The title may be filtered: Strip out HTML and make sure the aria-label is never empty.
    			$title      = trim( strip_tags( $title ) );
    			$aria_label = $title ? $title : $default_title;
    
    
  • /wp-includes/widgets/class-wp-widget-archives.php line 128
    		} else {
    			$format = current_theme_supports( 'html5', 'navigation-widgets' ) ? 'html5' : 'xhtml';
    
    			/** This filter is documented in wp-includes/widgets/class-wp-nav-menu-widget.php */
    			$format = apply_filters( 'navigation_widgets_format', $format );
    
    			if ( 'html5' === $format ) {
    				// The title may be filtered: Strip out HTML and make sure the aria-label is never empty.
    				$title      = trim( strip_tags( $title ) );
    				$aria_label = $title ? $title : $default_title;
    				echo '<nav aria-label="' . esc_attr( $aria_label ) . '">';
    
  • /wp-includes/widgets/class-wp-widget-categories.php line 116
    		} else {
    			$format = current_theme_supports( 'html5', 'navigation-widgets' ) ? 'html5' : 'xhtml';
    
    			/** This filter is documented in wp-includes/widgets/class-wp-nav-menu-widget.php */
    			$format = apply_filters( 'navigation_widgets_format', $format );
    
    			if ( 'html5' === $format ) {
    				// The title may be filtered: Strip out HTML and make sure the aria-label is never empty.
    				$title      = trim( strip_tags( $title ) );
    				$aria_label = $title ? $title : $default_title;
    				echo '<nav aria-label="' . esc_attr( $aria_label ) . '">';
    
  • /wp-includes/widgets/class-wp-widget-meta.php line 61
     
    		$format = current_theme_supports( 'html5', 'navigation-widgets' ) ? 'html5' : 'xhtml';
    
    		/** This filter is documented in wp-includes/widgets/class-wp-nav-menu-widget.php */
    		$format = apply_filters( 'navigation_widgets_format', $format );
    
    		if ( 'html5' === $format ) {
    			// The title may be filtered: Strip out HTML and make sure the aria-label is never empty.
    			$title      = trim( strip_tags( $title ) );
    			$aria_label = $title ? $title : $default_title;
    			echo '<nav aria-label="' . esc_attr( $aria_label ) . '">';
    
  • /wp-includes/widgets/class-wp-widget-pages.php line 98
     
    			$format = current_theme_supports( 'html5', 'navigation-widgets' ) ? 'html5' : 'xhtml';
    
    			/** This filter is documented in wp-includes/widgets/class-wp-nav-menu-widget.php */
    			$format = apply_filters( 'navigation_widgets_format', $format );
    
    			if ( 'html5' === $format ) {
    				// The title may be filtered: Strip out HTML and make sure the aria-label is never empty.
    				$title      = trim( strip_tags( $title ) );
    				$aria_label = $title ? $title : $default_title;
    				echo '<nav aria-label="' . esc_attr( $aria_label ) . '">';
    
  • /wp-includes/widgets/class-wp-widget-recent-comments.php line 131
     
    		$format = current_theme_supports( 'html5', 'navigation-widgets' ) ? 'html5' : 'xhtml';
    
    		/** This filter is documented in wp-includes/widgets/class-wp-nav-menu-widget.php */
    		$format = apply_filters( 'navigation_widgets_format', $format );
    
    		if ( 'html5' === $format ) {
    			// The title may be filtered: Strip out HTML and make sure the aria-label is never empty.
    			$title      = trim( strip_tags( $title ) );
    			$aria_label = $title ? $title : $default_title;
    			$output    .= '<nav aria-label="' . esc_attr( $aria_label ) . '">';
    
  • /wp-includes/widgets/class-wp-widget-recent-posts.php line 100
     
    		$format = current_theme_supports( 'html5', 'navigation-widgets' ) ? 'html5' : 'xhtml';
    
    		/** This filter is documented in wp-includes/widgets/class-wp-nav-menu-widget.php */
    		$format = apply_filters( 'navigation_widgets_format', $format );
    
    		if ( 'html5' === $format ) {
    			// The title may be filtered: Strip out HTML and make sure the aria-label is never empty.
    			$title      = trim( strip_tags( $title ) );
    			$aria_label = $title ? $title : $default_title;
    			echo '<nav aria-label="' . esc_attr( $aria_label ) . '">';
    
  • /wp-includes/widgets/class-wp-widget-rss.php line 124
     
    		$format = current_theme_supports( 'html5', 'navigation-widgets' ) ? 'html5' : 'xhtml';
    
    		/** This filter is documented in wp-includes/widgets/class-wp-nav-menu-widget.php */
    		$format = apply_filters( 'navigation_widgets_format', $format );
    
    		if ( 'html5' === $format ) {
    			// The title may be filtered: Strip out HTML and make sure the aria-label is never empty.
    			$title      = trim( strip_tags( $title ) );
    			$aria_label = $title ? $title : __( 'RSS Feed' );
    			echo '<nav aria-label="' . esc_attr( $aria_label ) . '">';
    
  • /wp-includes/widgets/class-wp-widget-tag-cloud.php line 99
     
    		$format = current_theme_supports( 'html5', 'navigation-widgets' ) ? 'html5' : 'xhtml';
    
    		/** This filter is documented in wp-includes/widgets/class-wp-nav-menu-widget.php */
    		$format = apply_filters( 'navigation_widgets_format', $format );
    
    		if ( 'html5' === $format ) {
    			// The title may be filtered: Strip out HTML and make sure the aria-label is never empty.
    			$title      = trim( strip_tags( $title ) );
    			$aria_label = $title ? $title : $default_title;
    			echo '<nav aria-label="' . esc_attr( $aria_label ) . '">';