WP_Widget::_set

Advertisement

Summery Summery

Sets the internal order number for the widget instance.

Syntax Syntax

WP_Widget::_set( int $number )

Parameters Parameters

$number

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

Source Source

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
2.8.0 Introduced.

Advertisement

Leave a Reply