WC_Widget_Brand_Description::form
Outputs the settings update form.
Method of the class: WC_Widget_Brand_Description{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Widget_Brand_Description = new WC_Widget_Brand_Description(); $WC_Widget_Brand_Description->form( $instance );
- $instance(array) (required)
- Current settings.
WC_Widget_Brand_Description::form() WC Widget Brand Description::form code WC 10.5.0
<?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
}