WP_Widget::form
Outputs the settings update form.
Метод класса: WP_Widget{}
Хуков нет.
Возвращает
Строку|null. Default return is 'noform'.
Использование
$WP_Widget = new WP_Widget(); $WP_Widget->form( $instance );
- $instance(массив) (обязательный)
- The settings for the particular instance of the widget.
Список изменений
| С версии 2.8.0 | Введена. |
Код WP_Widget::form() WP Widget::form WP 6.8.3
public function form( $instance ) {
echo '<p class="no-options-widget">' . __( 'There are no options for this widget.' ) . '</p>';
return 'noform';
}