Filters the HTML attributes applied to a page menu item’s anchor element.
$attsarray
<a> element, empty strings are ignored.href stringaria-current string$pageWP_Post
$depthint
$argsarray
$current_page_idint
$atts = apply_filters( 'page_menu_link_attributes', $atts, $page, $depth, $args, $current_page_id );
| Version | Description |
|---|---|
| 4.8.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/page_menu_link_attributes