BBP_Search_Widget::update( array $new_instance, array $old_instance )

Update the widget options

Description

Parameters

$new_instance

(Required) The new instance options

$old_instance

(Required) The old instance options

Source

File: bp-forums/common/widgets.php

465
466
467
468
469
470
public function update( $new_instance, $old_instance ) {
    $instance          = $old_instance;
    $instance['title'] = strip_tags( $new_instance['title'] );
 
    return $instance;
}

Changelog

Changelog
Version Description
bbPress (r4579) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.