BP_Core_Network_Posts_Widget::parse_settings( array $instance = array() )
Merge the widget settings into defaults array.
Description
Parameters
- $instance
-
(Optional) Widget instance settings.
Default value: array()
Return
(array)
Source
File: bp-core/classes/class-bp-core-network-posts-widget.php
public function parse_settings( $instance = array() ) { return bp_parse_args( $instance, array( 'title' => __( 'Recent Networkside Posts', 'buddyboss' ), 'number' => 1, 'show_date' => true, 'show_image' => true ), 'bb_network_posts_widget_settings' ); }
Changelog
Version | Description |
---|---|
2.3.0 | 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.