Automattic\WooCommerce\Internal\Admin\Notes

EmailNotification::get_default_heading()publicWC 1.0

Get email heading.

Method of the class: EmailNotification{}

No Hooks.

Return

String.

Usage

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

EmailNotification::get_default_heading() code 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();
}