WP_Posts_List_Table::_display_rows()
Метод класса: WP_Posts_List_Table{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->_display_rows( $posts, $level );
- $posts(массив) (обязательный)
- -
- $level(int)
- -
Код WP_Posts_List_Table::_display_rows() WP Posts List Table:: display rows WP 6.7.1
private function _display_rows( $posts, $level = 0 ) { $post_type = $this->screen->post_type; // Create array of post IDs. $post_ids = array(); foreach ( $posts as $a_post ) { $post_ids[] = $a_post->ID; } if ( post_type_supports( $post_type, 'comments' ) ) { $this->comment_pending_count = get_pending_comments_num( $post_ids ); } update_post_author_caches( $posts ); foreach ( $posts as $post ) { $this->single_row( $post, $level ); } }