WP_Widget::_set( int $number )

Sets the internal order number for the widget instance.

Parameters Parameters


(int) (Required) The unique order number of this widget instance compared to other instances of the same class.

Top ↑

Source Source

File: wp-includes/class-wp-widget.php

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

Top ↑

Changelog Changelog

Version Description
2.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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