/** * @return string */ public function getFileUrl() { $this->populatePostEntity(); if ($this->postEntity->post === null) { $this->postEntity = new PostEntity(get_the_ID()); } return $this->postEntity->getMetaField(self::FILE_URL); }