WP_Widget::_set( int $number )

In this article

Sets the internal order number for the widget instance.

Parameters

$numberintrequired
The unique order number of this widget instance compared to other instances of the same class.

Source

public function _set( $number ) {
	$this->number = $number;
	$this->id     = $this->id_base . '-' . $number;
}

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

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