Automattic\WooCommerce\Internal\Admin\Notes

EmailNotification::get_default_heading()publicWC 1.0

Get email heading.

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

Хуков нет.

Возвращает

Строку.

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

$EmailNotification = new EmailNotification();
$EmailNotification->get_default_heading();

Код EmailNotification::get_default_heading() WC 8.7.0

public function get_default_heading() {
	$content_data = $this->note->get_content_data();
	if ( isset( $content_data->heading ) ) {
		return $content_data->heading;
	}

	return $this->note->get_title();
}