public function footer() { parent::footer(); if (get_current_screen()->id !== self::POST_TYPE) { return; } $this->display_ad(); }