WP_Widget::form() WordPress Method
The WP_Widget::form() method is used to display a form for a widget. The form is used to configure the widget settings.
WP_Widget::form( array $instance ) #
Outputs the settings update form.
Parameters
- $instance
(array)(Required)Current settings.
Return
(string) Default return is 'noform'.
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'; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |