list_pages filter-hook . WP 3.1.0
Filters the page title when creating an HTML drop-down list of pages.
Usage
add_filter( 'list_pages', 'filter_function_name_9708', 10, 2 ); function filter_function_name_9708( $title, $page ){ // filter... return $title; }
- $title(string)
- Page title.
- $page(WP_Post)
- Page data object.
Changelog
Since 3.1.0 | Introduced. |
Where the hook is called
list_pages
wp-includes/class-walker-page-dropdown.php 86
$title = apply_filters( 'list_pages', $title, $page );
Where in WP core the hook is used WordPress
wp-includes/class-walker-page-dropdown.php 152
add_filter( 'list_pages', '_wp_privacy_settings_filter_draft_page_titles', 10, 2 );