BP_Core_Login_Widget::form( array $instance = array() )
Output the login widget options form.
Description Description
Parameters Parameters
- $instance
-
(Optional) Settings for this widget.
Default value: array()
Return Return
(void)
Source Source
File: bp-core/classes/class-bp-core-login-widget.php
public function form( $instance = array() ) {
$settings = wp_parse_args( $instance, array(
'title' => '',
) ); ?>
<p>
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'buddypress' ); ?>
<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( $settings['title'] ); ?>" /></label>
</p>
<?php
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.9.0 | Introduced. |