Automattic\WooCommerce\Admin

ReportCSVEmail::get_default_subject │ public │ WC 1.0

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.

Метод класса: ReportCSVEmail{}

Хуков нет.

Возвращает

string.

Использование

$ReportCSVEmail = new ReportCSVEmail();
$ReportCSVEmail->get_default_subject();

Код ReportCSVEmail::get_default_subject() 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' );
}