WP_Widget::formpublicWP 2.8.0

Outputs the settings update form.

Method of the class: WP_Widget{}

No Hooks.

Returns

String|null. Default return is 'noform'.

Usage

$WP_Widget = new WP_Widget();
$WP_Widget->form( $instance );
$instance(array) (required)
The settings for the particular instance of the widget.

Changelog

Since 2.8.0 Introduced.

WP_Widget::form() code WP 6.9.1

public function form( $instance ) {
	echo '<p class="no-options-widget">' . __( 'There are no options for this widget.' ) . '</p>';
	return 'noform';
}