WP_Widget_RSS::form()publicWP 2.8.0

Outputs the settings form for the RSS widget.

Method of the class: WP_Widget_RSS{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_Widget_RSS = new WP_Widget_RSS();
$WP_Widget_RSS->form( $instance );
$instance(array) (required)
Current settings.

Changelog

Since 2.8.0 Introduced.

WP_Widget_RSS::form() code WP 6.4.3

public function form( $instance ) {
	if ( empty( $instance ) ) {
		$instance = array(
			'title'        => '',
			'url'          => '',
			'items'        => 10,
			'error'        => false,
			'show_summary' => 0,
			'show_author'  => 0,
			'show_date'    => 0,
		);
	}
	$instance['number'] = $this->number;

	wp_widget_rss_form( $instance );
}