Uses
Uses | Description |
---|---|
wp-includes/post.php: get_post_type_object() | Retrieves a post type object by name. |
File: wp-admin/includes/class-wp-posts-list-table.php
public function no_items() { if ( isset( $_REQUEST['post_status'] ) && 'trash' === $_REQUEST['post_status'] ) { echo get_post_type_object( $this->screen->post_type )->labels->not_found_in_trash; } else { echo get_post_type_object( $this->screen->post_type )->labels->not_found; } }
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_posts_list_table/no_items