Automattic\WooCommerce\Internal\Admin\Notes

EmailNotification::get_default_heading()publicWC 1.0

Get email heading.

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

No Hooks.

Return

String.

Usage

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

Code of EmailNotification::get_default_heading() WC 7.1.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();
}