WC_Widget::widget_start( array $args, array $instance )

Output the html at the start of a widget.


Description Description


Parameters Parameters

$args

(Required) Arguments.

$instance

(Required) Instance.


Top ↑

Source Source

File: includes/abstracts/abstract-wc-widget.php

	public function widget_start( $args, $instance ) {
		echo $args['before_widget']; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped

		$title = apply_filters( 'widget_title', $this->get_instance_title( $instance ), $instance, $this->id_base );

		if ( $title ) {
			echo $args['before_title'] . $title . $args['after_title']; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
		}
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.