Search_Widget extends WP_Widget
Search Box Widget
Tags
Table of Contents
- __construct() : mixed
- Initialize the widget
- form() : mixed
- Back-end widget form.
- update() : mixed
- Processing widget options on save
- widget() : mixed
- Outputs the content of the widget
Methods
__construct()
Initialize the widget
public
__construct() : mixed
Tags
Return values
mixed —form()
Back-end widget form.
public
form(array<string|int, mixed> $instance) : mixed
Parameters
- $instance : array<string|int, mixed>
-
Previously saved values from database.
Tags
Return values
mixed —update()
Processing widget options on save
public
update(array<string|int, mixed> $new_instance, array<string|int, mixed> $old_instance) : mixed
Parameters
- $new_instance : array<string|int, mixed>
-
The new options.
- $old_instance : array<string|int, mixed>
-
The previous options.
Tags
Return values
mixed —widget()
Outputs the content of the widget
public
widget(array<string|int, mixed> $args, array<string|int, mixed> $instance) : mixed
Parameters
- $args : array<string|int, mixed>
- $instance : array<string|int, mixed>