WC_Widget_Product_Tag_Cloud
extends WC_Widget
in package
Widget product tag cloud
Table of Contents
- $settings : array
- Settings.
- $widget_cssclass : string
- CSS class.
- $widget_description : string
- Widget description.
- $widget_id : string
- Widget ID.
- $widget_name : string
- Widget name.
- __construct() : mixed
- Constructor.
- _get_current_taxonomy() : string
- Return the taxonomy being displayed.
- _topic_count_text() : string
- Returns topic count text.
- cache_widget() : string
- Cache the widget.
- flush_widget_cache() : mixed
- Flush the cache.
- form() : mixed
- Outputs the settings update form.
- get_cached_widget() : bool
- Get cached widget.
- get_current_taxonomy() : string
- Return the taxonomy being displayed.
- topic_count_text() : string
- Returns topic count text.
- update() : array
- Updates a particular instance of a widget.
- widget() : mixed
- Output widget.
- widget_end() : mixed
- Output the html at the end of a widget.
- widget_start() : mixed
- Output the html at the start of a widget.
- get_current_page_url() : string
- Get current page URL with various filtering props supported by WC.
- get_instance_title() : string
- Get this widgets title.
- get_widget_id_for_cache() : string
- Get widget id plus scheme/protocol to prevent serving mixed content from (persistently) cached widgets.
Properties
$settings
Settings.
public
array
$settings
$widget_cssclass
CSS class.
public
string
$widget_cssclass
$widget_description
Widget description.
public
string
$widget_description
$widget_id
Widget ID.
public
string
$widget_id
$widget_name
Widget name.
public
string
$widget_name
Methods
__construct()
Constructor.
public
__construct() : mixed
Return values
mixed_get_current_taxonomy()
Return the taxonomy being displayed.
public
_get_current_taxonomy(object $instance) : string
Parameters
- $instance : object
-
Widget instance.
Tags
Return values
string_topic_count_text()
Returns topic count text.
public
_topic_count_text(int $count) : string
Parameters
- $count : int
-
Count text.
Tags
Return values
stringcache_widget()
Cache the widget.
public
cache_widget(array $args, string $content) : string
Parameters
- $args : array
-
Arguments.
- $content : string
-
Content.
Return values
string — the content that was cachedflush_widget_cache()
Flush the cache.
public
flush_widget_cache() : mixed
Return values
mixedform()
Outputs the settings update form.
public
form(array $instance) : mixed
Parameters
- $instance : array
-
Instance.
Tags
Return values
mixedget_cached_widget()
Get cached widget.
public
get_cached_widget(array $args) : bool
Parameters
- $args : array
-
Arguments.
Return values
bool — true if the widget is cached otherwise falseget_current_taxonomy()
Return the taxonomy being displayed.
public
get_current_taxonomy(object $instance) : string
Parameters
- $instance : object
-
Widget instance.
Return values
stringtopic_count_text()
Returns topic count text.
public
topic_count_text(int $count) : string
Parameters
- $count : int
-
Count text.
Tags
Return values
stringupdate()
Updates a particular instance of a widget.
public
update(array $new_instance, array $old_instance) : array
Parameters
- $new_instance : array
-
New instance.
- $old_instance : array
-
Old instance.
Tags
Return values
arraywidget()
Output widget.
public
widget(array $args, array $instance) : mixed
Parameters
- $args : array
-
Arguments.
- $instance : array
-
Widget instance.
Tags
Return values
mixedwidget_end()
Output the html at the end of a widget.
public
widget_end(array $args) : mixed
Parameters
- $args : array
-
Arguments.
Return values
mixedwidget_start()
Output the html at the start of a widget.
public
widget_start(array $args, array $instance) : mixed
Parameters
- $args : array
-
Arguments.
- $instance : array
-
Instance.
Return values
mixedget_current_page_url()
Get current page URL with various filtering props supported by WC.
protected
get_current_page_url() : string
Tags
Return values
stringget_instance_title()
Get this widgets title.
protected
get_instance_title(array $instance) : string
Parameters
- $instance : array
-
Array of instance options.
Return values
stringget_widget_id_for_cache()
Get widget id plus scheme/protocol to prevent serving mixed content from (persistently) cached widgets.
protected
get_widget_id_for_cache(string $widget_id[, string $scheme = '' ]) : string
Parameters
- $widget_id : string
-
Id of the cached widget.
- $scheme : string = ''
-
Scheme for the widget id.