protected function nextItem() {

		if ( $this->args['prev_next'] && $this->current && $this->current < $this->total ) {

			$this->items[] = [
				'type'    => 'next',
				'url'     => $this->buildUrl( $this->args['format'], $this->current + 1 ),
				'content' => $this->args['next_text']
			];
		}
	}
protected function nextItem() {

		if ( $this->args['prev_next'] && $this->current && $this->current < $this->total ) {

			$this->items[] = [
				'type'    => 'next',
				'url'     => $this->buildUrl( $this->args['format'], $this->current + 1 ),
				'content' => $this->args['next_text']
			];
		}
	}
protected function nextItem ( ) { if ( $ this -> args [ 'prev_next' ] && $ this -> current && $ this -> current < $ this -> total ) { $ this -> items [ ] = [ 'type' => 'next' , 'url' => $ this -> buildUrl ( $ this -> args [ 'format' ] , $ this -> current + 1 ) , 'content' => $ this -> args [ 'next_text' ] ] ; } }
Builds the next item.

@since  5.0.0
@access protected
@return void
Builds the next item .