WP_Widget::form

Advertisement

Summery Summery

Outputs the settings update form.

Syntax Syntax

WP_Widget::form( array $instance )

Parameters Parameters

$instance

(Required) Current settings.

Return Return

(string) Default return is 'noform'.

Source Source

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
2.8.0 Introduced.

Advertisement

Leave a Reply