WordPress at Your Fingertips
function is not described

WP_Widget::_register_one() public WP 2.8.0

Registers an instance of the widget class.

{} It's a method of the class: WP_Widget{}

No Hooks.


null. Nothing.


$WP_Widget = new WP_Widget();
$WP_Widget->_register_one( $number );
The unique order number of this widget instance compared to other instances of the same class.
Default: -1

Code of WP_Widget::_register_one() WP 5.8.3

public function _register_one( $number = -1 ) {
		array( 'number' => $number )

		array( 'number' => -1 )

		array( 'number' => $number )