WC_Widget::get_instance_title()protectedWC 1.0

Get this widgets title.

Method of the class: WC_Widget{}

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_instance_title( $instance );
$instance(array) (required)
Array of instance options.

WC_Widget::get_instance_title() code WC 8.6.1

protected function get_instance_title( $instance ) {
	if ( isset( $instance['title'] ) ) {
		return $instance['title'];
	}

	if ( isset( $this->settings, $this->settings['title'], $this->settings['title']['std'] ) ) {
		return $this->settings['title']['std'];
	}

	return '';
}