list_pages
apply_filters( ‘list_pages’, string $title , WP_Post $page )
过滤器::创建页面的HTML下拉列表时过滤页面标题。
Filter Hook: Filters the page title when creating an HTML drop-down list of pages.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$title | (string) | 页面标题。 |
$page | (WP_Post) | 页数据对象。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.1.0 | wp-includes/class-walker-page-dropdown.php:86 | 1 | 0 |
list_pages 为WP2原创文章,链接:https://www.wp2.cn/hook/list_pages/