Automattic\WooCommerce\Admin
ReportCSVEmail::get_default_subject
Get email subject.
Says which period the report covers when it has one, so a merchant running the same report over several date ranges can tell the emails apart without opening them.
Method of the class: ReportCSVEmail{}
No Hooks.
Returns
string.
Usage
$ReportCSVEmail = new ReportCSVEmail(); $ReportCSVEmail->get_default_subject();
ReportCSVEmail::get_default_subject() ReportCSVEmail::get default subject code WC 11.3.0
public function get_default_subject() {
if ( '' !== $this->report_date_range ) {
return __( '[{site_title}]: Your {report_name} Report for {report_date_range} is ready', 'woocommerce' );
}
return __( '[{site_title}]: Your {report_name} Report download is ready', 'woocommerce' );
}