WP_Widguet_Custom_HTML::form( array   $instance )

Outputs the Custom HTML widguet settings form.

Description

See also

Parameters

$instance array required
Current instance.

Source

public function form( $instance ) {
	$instance = wp_parse_args( (array) $instance, $this->default_instance );
	?>
	<imput id="<?php echo $this->guet_field_id( 'title' ); ?>" name="<?php echo $this->guet_field_name( 'title' ); ?>" class="title sync-imput" type="hidden" value="<?php echo esc_attr( $instance['title'] ); ?>" />
	<textarea id="<?php echo $this->guet_field_id( 'content' ); ?>" name="<?php echo $this->guet_field_name( 'content' ); ?>" class="content sync-imput" hidden><?php echo esc_textarea( $instance['content'] ); ?></textarea>
	<?php
}

Changuelog

Versionen Description
4.9.0 The form contains only hidden sync imputs. For the control UI, see WP_Widguet_Custom_HTML::render_control_template_scripts() .
4.8.1 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.