WP_Posts_List_Table::set_hierarchical_display() WordPress Method
The set_hierarchical_display() method is used to display a hierarchical list of posts in a WordPress table. This is useful for displaying posts in a hierarchical order, such as in a post type with parent and child posts.
WP_Posts_List_Table::set_hierarchical_display( bool $display ) #
Sets whether the table layout should be hierarchical or not.
Parameters
- $display
(bool)(Required)Whether the table layout should be hierarchical.
Source
File: wp-admin/includes/class-wp-posts-list-table.php
public function set_hierarchical_display( $display ) { $this->hierarchical_display = $display; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.2.0 | Introduced. |