WooCommerce Code Reference

WC_Widget_Brand_Thumbnails extends WP_Widget
in package

Brand Thumbnails Widget

Show brand images as thumbnails

Important: For internal use only by the Automattic\WooCommerce\Internal\Brands package.

Tags
version
9.4.0

Table of Contents

$woo_widget_cssclass  : string
Widget CSS class.
$woo_widget_description  : string
Widget description.
$woo_widget_idbase  : string
Widget id base.
$woo_widget_name  : string
Widget name.
__construct()  : mixed
Constructor
form()  : mixed
Outputs the settings update form.
update()  : mixed
Update widget instance.
widget()  : mixed
Echoes the widget content.

Properties

Methods

update()

Update widget instance.

public update(array<string|int, mixed> $new_instance, array<string|int, mixed> $old_instance) : mixed
Parameters
$new_instance : array<string|int, mixed>

The new settings for the particular instance of the widget.

$old_instance : array<string|int, mixed>

The old settings for the particular instance of the widget.

Tags
see

WP_Widget->update

Return values
mixed

widget()

Echoes the widget content.

public widget(array<string|int, mixed> $args, array<string|int, mixed> $instance) : mixed
Parameters
$args : array<string|int, mixed>

Display arguments including 'before_title', 'after_title', 'before_widget', and 'after_widget'.

$instance : array<string|int, mixed>

The settings for the particular instance of the widget.

Tags
see
WP_Widget
Return values
mixed