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.


Top ↑

Source

File: wp-admin/includes/class-wp-posts-list-table.php

	public function set_hierarchical_display( $display ) {
		$this->hierarchical_display = $display;
	}


Top ↑

Changelog

Changelog
VersionDescription
4.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.