WC_Widget_Brand_Description::form()publicWC 1.0

Outputs the settings update form.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

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

Код WC_Widget_Brand_Description::form() WC 9.5.1

<?php
public function form( $instance ) {
	?>
		<p>
			<label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php esc_html_e( 'Title:', 'woocommerce' ); ?></label>
			<input type="text" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" value="<?php echo isset( $instance['title'] ) ? esc_attr( $instance['title'] ) : ''; ?>" />
		</p>
	<?php
}