WooCommerce Code Reference

WC_Widget_Brand_Description extends WP_Widget
in package

Brand Description Widget

When viewing a brand archive, show the current brands description + image

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 class.
$woo_widget_description  : string
Widget description.
$woo_widget_idbase  : string
Widget idbase.
$woo_widget_name  : string
Widget name.
__construct()  : mixed
Constructor
form()  : mixed
Outputs the settings update form.
update()  : mixed
Updates widget instance.
widget()  : mixed
Echoes the widget content.

Properties

Methods

update()

Updates widget instance.

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

New widget instance.

$old_instance : array<string|int, mixed>

Old widget instance.

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