Changeset 9587
- Timestamp:
- 03/03/2015 04:17:10 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-members-suggestions.php
r9486 r9587 47 47 public function validate() { 48 48 $this->args['only_friends'] = (bool) $this->args['only_friends']; 49 50 /** 51 * Filters the members suggestions args for the current user. 52 * 53 * @since BuddyPress (2.1.0) 54 * 55 * @param array $args Array of arguments for the member suggestions. 56 * @param BP_Members_Suggestions $this Current BP_Members_Suggestions instance. 57 */ 49 58 $this->args = apply_filters( 'bp_members_suggestions_args', $this->args, $this ); 50 59 … … 54 63 } 55 64 65 /** 66 * Filters the validation status for the suggestion service query. 67 * 68 * @since BuddyPress (2.1.0) 69 * 70 * @param bool|WP_Error $value Results of validation check. 71 * @param BP_Members_Suggestions $this Current BP_Members_Suggestions instance. 72 */ 56 73 return apply_filters( 'bp_members_suggestions_validate_args', parent::validate(), $this ); 57 74 } … … 80 97 } 81 98 99 /** 100 * Filters the members suggestions query args. 101 * 102 * @since BuddyPress (2.1.0) 103 * 104 * @param array $user_query Array of query arguments. 105 * @param BP_Members_Suggestions $this Current BP_Members_Suggestions instance. 106 */ 82 107 $user_query = apply_filters( 'bp_members_suggestions_query_args', $user_query, $this ); 83 108 if ( is_wp_error( $user_query ) ) { … … 98 123 } 99 124 125 /** 126 * Filters the members suggestions results. 127 * 128 * @since BuddyPress (2.1.0) 129 * 130 * @param array $results Array of users to suggest. 131 * @param BP_Members_Suggestions $this Current BP_Members_Suggestions instance. 132 */ 100 133 return apply_filters( 'bp_members_suggestions_get_suggestions', $results, $this ); 101 134 }
Note: See TracChangeset
for help on using the changeset viewer.