BBP_Forums_Widget::form( $instance )
Output the forum widget options form
Description
Parameters
- $instance
-
(Required) Instance
Source
File: bp-forums/common/widgets.php
691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 | public function form( $instance ) { // Get widget settings $settings = $this ->parse_settings( $instance ); ?> <p> <label for = "<?php echo $this->get_field_id( 'title' ); ?>" ><?php _e( 'Title:' , 'buddyboss' ); ?> <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> <p> <label for = "<?php echo $this->get_field_id( 'parent_forum' ); ?>" ><?php _e( 'Parent Forum ID:' , 'buddyboss' ); ?> <input class = "widefat" id= "<?php echo $this->get_field_id( 'parent_forum' ); ?>" name= "<?php echo $this->get_field_name( 'parent_forum' ); ?>" type= "text" value= "<?php echo esc_attr( $settings['parent_forum'] ); ?>" /> </label> <br /> <small><?php _e( '"0" to show only root - "any" to show all' , 'buddyboss' ); ?></small> </p> <?php } |
Changelog
Version | Description |
---|---|
bbPress (r2653) | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.