AP_Search_Widget::form( array $instance )
Description #
Widget form
Parameters #
- $instancearray (Required) Widget instance.
 
Source #
File: widgets/search.php
	public function form( $instance ) {
		$title = __( 'Search questions', 'anspress-question-answer' );
		if ( isset( $instance['title'] ) ) {
			$title = $instance['title'];
		}
		?>
		<p>
			<label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php esc_attr_e( 'Title:', 'anspress-question-answer' ); ?></label>
			<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>">
		</p>
		<?php
		return 'noform';
	}
Expand full source code Collapse full source code View on GitHub: widgets/search.php:70
  Add your comment