Recent

Search_Heatmap class

Search_Heatmap

Create a WordPress Widget for Popular search terms.

Namespace: WebberZone\Better_Search\Frontend\Widgets
Since: 3.3.0
Source: includes/frontend/widgets/class-search-heatmap.php line 21 Extends: WP_Widget

Methods

__construct()

Register widget with WordPress.

Line: 26

public function __construct(  );

form()

Back-end widget form.

Line: 48

public function form( $instance );
TypeNameDescription
array$instancePreviously saved values from database.

update()

Sanitize widget form values as they are saved.

Line: 95

public function update( $new_instance, $old_instance ): array;
TypeNameDescription
array$new_instanceNew settings for this instance as input by the user via
array$old_instanceOld settings for this instance.

Returns: array — Settings to save.

widget()

Front-end display of widget.

Line: 121

public function widget( $args, $instance );
TypeNameDescription
array$argsDisplay arguments including ‘before_title’, ‘after_title’,
array$instanceThe settings for the particular instance of the widget.