Dev Resources

  • Home
  • Reference
  • BuddyX Theme
  • Functions
  • Hooks
  • Classes
Filter by type:
Search
Browse: Home / Reference / Classes / BP_Core_Login_Widget / BP_Core_Login_Widget::update()

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

Update the login widget options.

Contents

  • Description
    • Parameters
    • Return
    • Source
    • Changelog
  • User Contributed Notes

Description #Description


Parameters #Parameters

$new_instance

(Required) The new instance options.

$old_instance

(Required) The old instance options.


Top ↑

Return #Return

(array) $instance The parsed options to be saved.


Top ↑

Source #Source

File: bp-core/classes/class-bp-core-login-widget.php

	public function update( $new_instance, $old_instance ) {
		$instance             = $old_instance;
		$instance['title']    = isset( $new_instance['title'] ) ? strip_tags( $new_instance['title'] ) : '';

		return $instance;
	}

Expand full source code Collapse full source code


Top ↑

Changelog #Changelog

Changelog
Version Description
1.9.0 Introduced.

Top ↑

User Contributed Notes #User Contributed Notes

You must log in before being able to contribute a note or feedback.

Proudly powered by WordPress