public function make($currentPage, array $arguments = [])
    {
        $this->currentPage = $currentPage ?: get_query_var('paged');

        $this->setArguments(array_merge($arguments, $this->getDefaults()));
        $this->setLinks($this->getPaginationLinks());

        return $this->generate();
    }
public function make($currentPage, array $arguments = [])
    {
        $this->currentPage = $currentPage ?: get_query_var('paged');

        $this->setArguments(array_merge($arguments, $this->getDefaults()));
        $this->setLinks($this->getPaginationLinks());

        return $this->generate();
    }
public function make ( $ currentPage , array $ arguments = [ ] ) { $ this -> currentPage = $ currentPage ? : get_query_var ( 'paged' ) ; $ this -> setArguments ( array_merge ( $ arguments , $ this -> getDefaults ( ) ) ) ; $ this -> setLinks ( $ this -> getPaginationLinks ( ) ) ; return $ this -> generate ( ) ; }
Get pagination.

@param  int|string  $currentPage
@param  array  $arguments

@return self
Get pagination .