On this page
WP_Widget::form( array $instance ): string
Outputs the settings update form.
Parameters
$instancearray Required-
Current settings.
Return
string Default return is 'noform'.
Source
File: wp-includes/class-wp-widget.php. View all references
public function form( $instance ) {
echo '<p class="no-options-widget">' . __( 'There are no options for this widget.' ) . '</p>';
return 'noform';
}
Related
Uses
| Uses | Description |
|---|---|
| __() wp-includes/l10n.php | Retrieves the translation of $text. |
Used By
| Used By | Description |
|---|---|
| WP_Widget::form_callback() wp-includes/class-wp-widget.php | Generates the widget control form (Do NOT override). |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_widget/form