/** * Gather various meta information for the upcoming offer */ public function __construct() { $this->postId = $_GET['postId']; $this->post = get_post($this->postId); $this->sourceLang = Multilang::getPostLanguage($this->post->ID); $this->targetLang = $_GET['targetLang']; }