[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

title

Body

[close]

/wp-includes/ -> class-walker-page.php (summary)

Post API: Walker_Page class

File Size: 236 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Walker_Page:: (4 methods):
  start_lvl()
  end_lvl()
  start_el()
  end_el()


Class: Walker_Page  - X-Ref

Core walker class used to create an HTML list of pages.

start_lvl( &$output, $depth = 0, $args = array()   X-Ref
Outputs the beginning of the current level in the tree before elements are output.

param: string $output Used to append additional content (passed by reference).
param: int    $depth  Optional. Depth of page. Used for padding. Default 0.
param: array  $args   Optional. Arguments for outputting the next level.

end_lvl( &$output, $depth = 0, $args = array()   X-Ref
Outputs the end of the current level in the tree after elements are output.

param: string $output Used to append additional content (passed by reference).
param: int    $depth  Optional. Depth of page. Used for padding. Default 0.
param: array  $args   Optional. Arguments for outputting the end of the current level.

start_el( &$output, $page, $depth = 0, $args = array()   X-Ref
Outputs the beginning of the current element in the tree.

param: string  $output       Used to append additional content. Passed by reference.
param: WP_Post $page         Page data object.
param: int     $depth        Optional. Depth of page. Used for padding. Default 0.
param: array   $args         Optional. Array of arguments. Default empty array.
param: int     $current_page Optional. Page ID. Default 0.

end_el( &$output, $page, $depth = 0, $args = array()   X-Ref
Outputs the end of the current element in the tree.

param: string  $output Used to append additional content. Passed by reference.
param: WP_Post $page   Page data object. Not used.
param: int     $depth  Optional. Depth of page. Default 0 (unused).
param: array   $args   Optional. Array of arguments. Default empty array.



Generated: Wed Oct 16 08:20:01 2019 Cross-referenced by PHPXref 0.7