WP_Widget::form()publicWP 2.8.0

Outputs the settings update form.

Метод класса: WP_Widget{}

Хуков нет.

Возвращает

Строку. Default return is 'noform'.

Использование

$WP_Widget = new WP_Widget();
$WP_Widget->form( $instance );
$instance(массив) (обязательный)
Current settings.

Список изменений

С версии 2.8.0 Введена.

Код WP_Widget::form() WP 6.5.2

public function form( $instance ) {
	echo '<p class="no-options-widget">' . __( 'There are no options for this widget.' ) . '</p>';
	return 'noform';
}