page_css_class

过滤钩子


apply_filters( 'page_css_class', $css_class, $page, $depth, $args, $current_page_id )
定义位置
  • wp-content/themes/twentytwenty/classes/class-twentytwenty-walker-page.php , line 73
引入
n/a
弃用

This filter is documented in wp-includes/class-walker-page.php

$css_classes = implode( ' ', apply_filters( 'page_css_class', $css_class, $page, $depth, $args, $current_page_id ) );