DataSource/WpciQuery.php
protected function getAcfFromPage(int $pageId): array
    {
        $data = [];
        try {
            $data = $this->wpProvider->getFields($pageId);
        } catch (\Throwable $e) {
            ;
        }

        if (!is_array($data) || empty($data)) return [];

        return $data;
    }
protected function getAcfFromPage(int $pageId): array
    {
        $data = [];
        try {
            $data = $this->wpProvider->getFields($pageId);
        } catch (\Throwable $e) {
            ;
        }

        if (!is_array($data) || empty($data)) return [];

        return $data;
    }
protected function getAcfFromPage ( int $ pageId ) : array { $ data = [ ] ; try { $ data = $ this -> wpProvider -> getFields ( $ pageId ) ; } catch ( \ Throwable $ e ) { ; } if ( ! is_array ( $ data ) || empty ( $ data ) ) return [ ] ; return $ data ; }
Try to receive the ACF data by page id, will return empty array if fail
@param int $pageId
@return array
Try to receive the ACF data by page id will return empty array if fail