Breadcrumb_Widget
Create a WordPress Breadcrumb Widget for WZ Knowledge Base.
Namespace: WebberZone\Knowledge_Base\Widgets
Since: 2.3.0
Source: includes/widgets/class-breadcrumb-widget.php line 20
Extends: WP_Widget
Methods
__construct()
Register widget with WordPress.
Line: 25
public function __construct( );
form()
Back-end widget form.
Line: 44
public function form( $instance );
| Type | Name | Description |
|---|---|---|
array |
$instance |
Previously saved values from database. |
update()
Sanitize widget form values as they are saved.
Line: 78
public function update( $new_instance, $old_instance ): array;
| Type | Name | Description |
|---|---|---|
array |
$new_instance |
Values just sent to be saved. |
array |
$old_instance |
Previously saved values from database. |
Returns: array — Updated safe values to be saved.
widget()
Front-end display of widget.
Line: 95
public function widget( $args, $instance );
| Type | Name | Description |
|---|---|---|
array |
$args |
Widget arguments. |
array |
$instance |
Saved values from database. |