Filter hook 'page_menu_link_attributes'

in WP Core File wp-includes/class-walker-page.php at line 190

Description

Filters the HTML attributes applied to a page menu item's anchor element. }

Occurrences

Filename Line Number
wp-includes/class-walker-page.php 190

Parameters

Type Name Description
array $atts { The HTML attributes applied to the menu item's `` element, empty strings are ignored.
WP_Post $page Page data object.
int $depth Depth of page, used for padding.
array $args An array of arguments.
int $current_page_id ID of the current page.

PHP Doc

/**
		 * Filters the HTML attributes applied to a page menu item's anchor element.
		 *
		 * @since 4.8.0
		 *
		 * @param array $atts {
		 *     The HTML attributes applied to the menu item's `` element, empty strings are ignored.
		 *
		 *     @type string $href         The href attribute.
		 *     @type string $aria-current The aria-current attribute.
		 * }
		 * @param WP_Post $page            Page data object.
		 * @param int     $depth           Depth of page, used for padding.
		 * @param array   $args            An array of arguments.
		 * @param int     $current_page_id ID of the current page.
		 */