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'; }
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_widget/form