WP_Widget_Custom_HTML::form() – Outputs the Custom HTML widget settings form.

You appear to be a bot. Output may be restricted

Description

Outputs the Custom HTML widget settings form.

Usage

WP_Widget_Custom_HTML::form( $instance );

Parameters

$instance
( array ) required – Current instance.

Returns

void

Source

File name: wordpress/wp-includes/widgets/class-wp-widget-custom-html.php
Lines:

1 to 7 of 7
  public function form( $instance ) {
    $instance = wp_parse_args( (array) $instance, $this->default_instance );
    ?>
		<input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" class="title sync-input" type="hidden" value="<?php echo esc_attr( $instance['title'] ); ?>" />
		<textarea id="<?php echo $this->get_field_id( 'content' ); ?>" name="<?php echo $this->get_field_name( 'content' ); ?>" class="content sync-input" hidden><?php echo esc_textarea( $instance['content'] ); ?></textarea>
		<?php
  }
 

 View on GitHub View on Trac