WP_Widget::form
Outputs the settings update form.
Метод класса: WP_Widget{}
Хуков нет.
Возвращает
string|null. Default return is 'noform'. A subclass may opt to return null.
Использование
$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 7.1
public function form( $instance ) {
echo '<p class="no-options-widget">' . __( 'There are no options for this widget.' ) . '</p>';
return 'noform';
}