Recent

Section_Tree_Widget class Pro only

Section_Tree_Widget

Sidebar widget that renders the context-aware KB section tree.

Namespace: WebberZone\Knowledge_Base\Pro\Widgets
Since: 3.1.0
Source: includes/widgets/class-section-tree-widget.php line 22 Extends: WP_Widget

Methods

__construct()

Register widget with WordPress.

Line: 27

public function __construct(  );

form()

Back-end widget form.

Line: 47

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

update()

Sanitize widget form values as they are saved.

Line: 122

public function update( $new_instance, $old_instance ): array;
TypeNameDescription
array$new_instanceValues just sent to be saved.
array$old_instancePreviously saved values from database.

Returns: array — Updated safe values to be saved.

widget()

Front-end display of widget.

Line: 141

public function widget( $args, $instance );
TypeNameDescription
array$argsWidget arguments.
array$instanceSaved values from database.