/** * Get the video iframe when post type is 'video' */ public function video_player() { if ('video' != $this->format) { return null; } $player = MWFunctions::construct_video_player($this->video); return $player; }