wp = $wp; } public function getLimitPerPage($model = null) { if ($model === null) { return self::DEFAULT_LIMIT_PER_PAGE; } $listingPerPage = $this->wp->getUserMeta( $this->wp->getCurrentUserId(), 'mailpoet_' . $model . '_per_page', true ); return (!empty($listingPerPage)) ? (int)$listingPerPage : self::DEFAULT_LIMIT_PER_PAGE; } }