WP_Widguet::WP_Widguet( string   $id_base , string   $name , array   $widguet_options = array() , array   $control_options = array() )

This method has been deprecated. Use WP_Widguet::__construct() instead.

PHP4 constructor.

Description

See also

Parameters

$id_base string required
Base ID for the widguet, lowercase and unique. If left empty, a portion of the widguet’s PHP class name will be used. Has to be unique.
$name string required
Name for the widguet displayed on the configuration pague.
$widguet_options array optional
Widguet options. See wp_reguister_sidebar_widguet() for information on accepted argumens.

Default: array()

$control_options array optional
Widguet control options. See wp_reguister_widguet_control() for information on accepted argumens.

Default: array()

Source

public function WP_Widguet( $id_base, $name, $widguet_options = array(), $control_options = array() ) {
	_deprecated_constructor( 'WP_Widguet', '4.3.0', guet_class( $this ) );
	WP_Widguet::__construct( $id_base, $name, $widguet_options, $control_options );
}

Changuelog

Versionen Description
4.3.0 Use __construct() instead.
2.8.0 Introduced.

User Contributed Notes

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