WP_Posts_List_Table::display_rows

Advertisement

Syntax Syntax

WP_Posts_List_Table::display_rows( array $posts = array(), int $level )

Parameters Parameters

$posts

(Optional)

Default value: array()

$level

(Required)

Source Source

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

			'date'     => array( 'date', true ),
		);
	}

	/**
	 * @global WP_Query $wp_query WordPress Query object.
	 * @global int $per_page
	 * @param array $posts
	 * @param int   $level
	 */
	public function display_rows( $posts = array(), $level = 0 ) {
		global $wp_query, $per_page;

		if ( empty( $posts ) ) {
			$posts = $wp_query->posts;

Advertisement

Advertisement

Leave a Reply