W3cubDocs

/WordPress

WP_List_Table::has_items(): bool

Determines whether the table has items to display or not

Return

bool

Source

public function has_items() {
	return ! empty( $this->items );
}

Changelog

Version Description
3.1.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_list_table/has_items