Changeset 13890 for trunk/src/bp-groups/bp-groups-functions.php
- Timestamp:
- 06/02/2024 01:06:10 AM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-functions.php
r13874 r13890 323 323 * members about changes in these details. 324 324 * } 325 * @return bool True on success, false on failure.325 * @return bool 326 326 */ 327 327 function groups_edit_base_group_details( $args = array() ) { … … 420 420 * to the group. 'members', 'mods', or 'admins'. 421 421 * @param int|bool $parent_id Parent group ID. 422 * @return bool True on success, false on failure.422 * @return bool 423 423 */ 424 424 function groups_edit_group_settings( $group_id, $enable_forum, $status, $invite_status = false, $parent_id = false ) { … … 469 469 * 470 470 * @param int $group_id ID of the group to delete. 471 * @return bool True on success, false on failure.471 * @return bool 472 472 */ 473 473 function groups_delete_group( $group_id ) { … … 604 604 * @param int $user_id Optional. ID of the user. Defaults to the currently 605 605 * logged-in user. 606 * @return bool True on success, false on failure.606 * @return bool 607 607 */ 608 608 function groups_leave_group( $group, $user_id = 0 ) { … … 656 656 * @param int $user_id Optional. ID of the user. Defaults to the currently 657 657 * logged-in user. 658 * @return bool True on success, false on failure.658 * @return bool 659 659 */ 660 660 function groups_join_group( $group, $user_id = 0 ) { … … 1291 1291 * @since 12.0.0 1292 1292 * 1293 * @return bool eanTrue if the current user can access to the current group.1293 * @return bool True if the current user can access to the current group. 1294 1294 * False otherwise. 1295 1295 */ … … 1640 1640 * sent now. Default: false. 1641 1641 * } 1642 * @return bool True on success, false on failure.1642 * @return bool 1643 1643 */ 1644 1644 function groups_invite_user( $args = '' ) { … … 1691 1691 * @param int $group_id ID of the group. 1692 1692 * @param int $inviter_id ID of the inviter. 1693 * @return bool True on success, false on failure.1693 * @return bool 1694 1694 */ 1695 1695 function groups_uninvite_user( $user_id, $group_id, $inviter_id = false ) { … … 1754 1754 * @param int $inviter_id ID of the inviter. 1755 1755 * 1756 * @return bool True on success, false on failure.1756 * @return bool 1757 1757 */ 1758 1758 function groups_reject_invite( $user_id, $group_id, $inviter_id = false ) { … … 1793 1793 * @param int $inviter_id ID of the inviter. 1794 1794 * 1795 * @return bool True on success, false on failure.1795 * @return bool 1796 1796 */ 1797 1797 function groups_delete_invite( $user_id, $group_id, $inviter_id = false ) { … … 2021 2021 * @param string $status The new status. 'mod' or 'admin'. 2022 2022 * @param int $group_admin_id Optional. The group admin user ID. 2023 * @return bool True on success, false on failure.2023 * @return bool 2024 2024 */ 2025 2025 function groups_promote_member( $user_id, $group_id, $status, $group_admin_id = 0 ) { … … 2079 2079 * @param int $group_id ID of the group. 2080 2080 * @param int $group_admin_id Optional. The group admin user ID. 2081 * @return bool True on success, false on failure.2081 * @return bool 2082 2082 */ 2083 2083 function groups_demote_member( $user_id, $group_id, $group_admin_id = 0 ) { … … 2133 2133 * @param int $group_id ID of the group. 2134 2134 * @param int $group_admin_id Optional. The group admin user ID. 2135 * @return bool True on success, false on failure.2135 * @return bool 2136 2136 */ 2137 2137 function groups_ban_member( $user_id, $group_id, $group_admin_id = 0 ) { … … 2187 2187 * @param int $group_id ID of the group. 2188 2188 * @param int $group_admin_id Optional. The group admin user ID. 2189 * @return bool True on success, false on failure.2189 * @return bool 2190 2190 */ 2191 2191 function groups_unban_member( $user_id, $group_id, $group_admin_id = 0 ) { … … 2243 2243 * @param int $group_id ID of the group. 2244 2244 * @param int $group_admin_id Optional. The group admin user ID. 2245 * @return bool True on success, false on failure.2245 * @return bool 2246 2246 */ 2247 2247 function groups_remove_member( $user_id, $group_id, $group_admin_id = 0 ) { … … 2301 2301 * Default: current date/time. 2302 2302 * } 2303 * @return bool True on success, false on failure.2303 * @return bool 2304 2304 */ 2305 2305 function groups_send_membership_request( ...$args ) { … … 2375 2375 * requested. Provide this value along with $user_id to 2376 2376 * override $membership_id. 2377 * @return bool True on success, false on failure.2377 * @return bool 2378 2378 */ 2379 2379 function groups_accept_membership_request( $membership_id, $user_id = 0, $group_id = 0 ) { … … 2409 2409 * requested. Provide this value along with $user_id to 2410 2410 * override $membership_id. 2411 * @return bool True on success, false on failure.2411 * @return bool 2412 2412 */ 2413 2413 function groups_reject_membership_request( $membership_id, $user_id = 0, $group_id = 0 ) { … … 2558 2558 * 2559 2559 * @param int $group_id ID of the group. 2560 * @return bool True on success, false on failure.2560 * @return bool 2561 2561 */ 2562 2562 function groups_accept_all_pending_membership_requests( $group_id = 0 ) { … … 2604 2604 * metadata entries for the specified group. 2605 2605 * Default: false. 2606 * @return bool True on success, false on failure.2606 * @return bool 2607 2607 */ 2608 2608 function groups_delete_groupmeta( $group_id, $meta_key = false, $meta_value = false, $delete_all = false ) {
Note: See TracChangeset
for help on using the changeset viewer.