diff --git src/bp-friends/bp-friends-widgets.php src/bp-friends/bp-friends-widgets.php
index 5116ca3..cabf00c 100644
|
|
class BP_Core_Friends_Widget extends WP_Widget { |
84 | 84 | |
85 | 85 | echo $before_title . $title . $after_title; |
86 | 86 | |
87 | | $members_args = array( |
| 87 | $members_args = apply_filters( 'bp_friends_widget_members_args', array( |
88 | 88 | 'user_id' => absint( $user_id ), |
89 | 89 | 'type' => sanitize_text_field( $instance['friend_default'] ), |
90 | 90 | 'max' => absint( $instance['max_friends'] ), |
91 | 91 | 'populate_extras' => 1, |
92 | | ); |
| 92 | ) ); |
93 | 93 | |
94 | 94 | ?> |
95 | 95 | |
… |
… |
function bp_core_ajax_widget_friends() { |
219 | 219 | break; |
220 | 220 | } |
221 | 221 | |
222 | | $members_args = array( |
| 222 | $members_args = apply_filters( 'bp_friends_widget_members_args', array( |
223 | 223 | 'user_id' => bp_displayed_user_id(), |
224 | 224 | 'type' => $type, |
225 | 225 | 'max' => absint( $_POST['max-friends'] ), |
226 | 226 | 'populate_extras' => 1, |
227 | | ); |
| 227 | ) ); |
228 | 228 | |
229 | 229 | if ( bp_has_members( $members_args ) ) : ?> |
230 | 230 | <?php echo '0[[SPLIT]]'; // return valid result. TODO: remove this. ?> |