public function get_heading()
{
if (!empty($this->object) && $this->object->has_downloadable_item()) {
return apply_filters('woocommerce_email_heading_customer_completed_order', $this->format_string($this->heading_downloadable), $this->object);
} else {
return apply_filters('woocommerce_email_heading_customer_completed_order', $this->format_string($this->heading), $this->object);
}
}