BP_Messages_Sitewide_Notices_Widget::form( array $instance )

Render the settings form for Appearance > Widgets.


Description Description

See also See also


Top ↑

Parameters Parameters

$instance

(Required) See {@WP_Widget::form()}.


Top ↑

Return Return

(string|null) Widget form output.


Top ↑

Source Source

File: bp-messages/classes/class-bp-messages-sitewide-notices-widget.php

	public function form( $instance ) {
		$instance = wp_parse_args( (array) $instance, array(
			'title' => '',
		) );

		$title = strip_tags( $instance['title'] ); ?>

		<p>
			<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'buddypress' ); ?></label>
			<input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
		</p>

		<?php
	}

Top ↑

User Contributed Notes User Contributed Notes

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