WordPress at Your Fingertips
function is not described

WC_Widget::get_instance_title() protected WC 1.0

Get this widgets title.

{} It's a 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.

Code of WC_Widget::get_instance_title() WC 5.8.0

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 '';
}