list_pages

过滤钩子


apply_filters( 'list_pages', $title, $page )
参数
  • (string)
    $title
    Page title.
    Required:
  • (WP_Post)
    $page
    Page data object.
    Required:
定义位置
  • wp-includes/class-walker-page-dropdown.php
    , line 91
引入
3.1.0
弃用

Filters the page title when creating an HTML drop-down list of pages.

$title = apply_filters( 'list_pages', $title, $page );