WP_Widget::WP_Widget() – PHP4 constructor.

You appear to be a bot. Output may be restricted

Description

PHP4 constructor.

Usage

WP_Widget::WP_Widget( $id_base, $name, $widget_options, $control_options );

Parameters

$id_base
( string ) required – Base ID for the widget, lowercase and unique. If left empty, a portion of the widget's PHP class name will be used. Has to be unique.
$name
( string ) required – Name for the widget displayed on the configuration page.
$widget_options
( array ) optional – Optional. Widget options. See wp_register_sidebar_widget() for information on accepted arguments. Default empty array.
$control_options
( array ) optional – Optional. Widget control options. See wp_register_widget_control() for information on accepted arguments. Default empty array.

Returns

void

Source

File name: wordpress/wp-includes/class-wp-widget.php
Lines:

1 to 4 of 4
  public function WP_Widget( $id_base, $name, $widget_options = array(), $control_options = array() ) {
    _deprecated_constructor( 'WP_Widget', '4.3.0', get_class( $this ) );
    WP_Widget::WP_Widget::__construct( $id_base, $name, $widget_options, $control_options );
  }
 

 View on GitHub View on Trac