Changeset 9492
- Timestamp:
- 02/17/2015 06:54:37 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/classes/class-bp-groups-member-suggestions.php
r9486 r9492 48 48 public function validate() { 49 49 $this->args['group_id'] = (int) $this->args['group_id']; 50 51 /** 52 * Filters the arguments used to validate and sanitize suggestion service query. 53 * 54 * @since BuddyPress (2.1.0) 55 * 56 * @param array $args Array of arguments for the suggestion service query. 57 * @param BP_Groups_Member_Suggestions $this Instance of the current suggestion class. 58 */ 50 59 $this->args = apply_filters( 'bp_groups_member_suggestions_args', $this->args, $this ); 51 60 … … 65 74 } 66 75 76 /** 77 * Filters the validation results for the suggestion service query. 78 * 79 * @since BuddyPress (2.1.0) 80 * 81 * @param bool|WP_Error $value True if valid, WP_Error if not. 82 * @param BP_Groups_Member_Suggestions $this Instance of the current suggestion class. 83 */ 67 84 return apply_filters( 'bp_groups_member_suggestions_validate_args', parent::validate(), $this ); 68 85 } … … 116 133 } 117 134 135 /** 136 * Filters the arguments for the user query for the Suggestion API. 137 * 138 * @since BuddyPress (2.1.0) 139 * 140 * @param array $user_query Array of arguments for the query. 141 * @param BP_Groups_Member_Suggestions $this Instance of the current suggestion class. 142 */ 118 143 $user_query = apply_filters( 'bp_groups_member_suggestions_query_args', $user_query, $this ); 119 144 if ( is_wp_error( $user_query ) ) { … … 138 163 } 139 164 165 /** 166 * Filters the results of the member suggestions user query. 167 * 168 * @since BuddyPress (2.1.0) 169 * 170 * @param array $results Array of member suggestions. 171 * @param BP_Groups_Member_Suggestions $this Instance of the current suggestion class. 172 */ 140 173 return apply_filters( 'bp_groups_member_suggestions_get_suggestions', $results, $this ); 141 174 }
Note: See TracChangeset
for help on using the changeset viewer.