wp_list_pages_excludes хук-фильтр . WP 2.1.0
Filters the array of pages to exclude from the pages list.
Использование
add_filter( 'wp_list_pages_excludes', 'filter_function_name_4713' ); function filter_function_name_4713( $exclude_array ){ // filter... return $exclude_array; }
- $exclude_array(массив)
- An array of page IDs to exclude.
Список изменений
С версии 2.1.0 | Введена. |
Где вызывается хук
wp_list_pages_excludes
wp-includes/post-template.php 1297
$parsed_args['exclude'] = implode( ',', apply_filters( 'wp_list_pages_excludes', $exclude_array ) );