WP_Widget_RSS::form()
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() 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 ); }