page_menu_link_attributes

最后更新于:2021-11-27 12:57:24

apply_filters( ‘page_menu_link_attributes’, array $atts, GC_Post $page, int $depth, array $args, int $current_page )

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

参数

$atts

(array)
The HTML attributes applied to the menu item’s <a> element, empty strings are ignored.

  • ‘href’
    (string) The href attribute.
  • ‘aria-current’
    (string) The aria-current attribute.

$page

(GC_Post)
Page data object.

$depth

(int)
Depth of page, used for padding.

$args

(array)
An array of arguments.

$current_page

(int)
ID of the current page.

源文件

文件: gc-includes/class-walker-page.php

View on Trac