diff --git a/src/bp-groups/bp-groups-template.php b/src/bp-groups/bp-groups-template.php
index 10feea0..41425c9 100644
a
|
b
|
function bp_group_creator_avatar( $group = false, $args = array() ) { |
1297 | 1297 | * |
1298 | 1298 | * @since 1.7.0 |
1299 | 1299 | * @since 2.5.0 Added the `$group` parameter. |
| 1300 | * @since 2.6.0 Added the `$r` parameter. |
1300 | 1301 | * |
1301 | 1302 | * @param string $avatar Avatar of the group creator. |
1302 | 1303 | * @param object $group Group object. |
| 1304 | * @param array $r Array of parsed arguments. |
1303 | 1305 | */ |
1304 | | return apply_filters( 'bp_get_group_creator_avatar', $avatar, $group ); |
| 1306 | return apply_filters( 'bp_get_group_creator_avatar', $avatar, $group, $r ); |
1305 | 1307 | } |
1306 | 1308 | |
1307 | 1309 | /** |
… |
… |
function bp_group_member_promote_mod_link( $args = '' ) { |
2360 | 2362 | * Filters a URL for promoting a user to moderator. |
2361 | 2363 | * |
2362 | 2364 | * @since 1.1.0 |
| 2365 | * @since 2.6.0 Added the `$r` parameter. |
2363 | 2366 | * |
2364 | 2367 | * @param string $value URL to use for promoting a user to moderator. |
| 2368 | * @param array $r Array of parsed arguments. |
2365 | 2369 | */ |
2366 | | return apply_filters( 'bp_get_group_member_promote_mod_link', wp_nonce_url( bp_get_group_permalink( $group ) . 'admin/manage-members/promote/mod/' . $user_id, 'groups_promote_member' ) ); |
| 2370 | return apply_filters( 'bp_get_group_member_promote_mod_link', wp_nonce_url( bp_get_group_permalink( $group ) . 'admin/manage-members/promote/mod/' . $user_id, 'groups_promote_member' ), $r ); |
2367 | 2371 | } |
2368 | 2372 | |
2369 | 2373 | /** |
… |
… |
function bp_group_member_promote_admin_link( $args = '' ) { |
2403 | 2407 | * Filters a URL for promoting a user to admin. |
2404 | 2408 | * |
2405 | 2409 | * @since 1.1.0 |
| 2410 | * @since 2.6.0 Added the `$r` parameter. |
2406 | 2411 | * |
2407 | 2412 | * @param string $value URL to use for promoting a user to admin. |
| 2413 | * @param array $r Array of parsed arguments. |
2408 | 2414 | */ |
2409 | | return apply_filters( 'bp_get_group_member_promote_admin_link', wp_nonce_url( bp_get_group_permalink( $group ) . 'admin/manage-members/promote/admin/' . $user_id, 'groups_promote_member' ) ); |
| 2415 | return apply_filters( 'bp_get_group_member_promote_admin_link', wp_nonce_url( bp_get_group_permalink( $group ) . 'admin/manage-members/promote/admin/' . $user_id, 'groups_promote_member' ), $r ); |
2410 | 2416 | } |
2411 | 2417 | |
2412 | 2418 | /** |
… |
… |
function bp_group_member_demote_link( $user_id = 0 ) { |
2452 | 2458 | * |
2453 | 2459 | * @since 1.0.0 |
2454 | 2460 | * @since 2.5.0 Added the `$group` parameter. |
| 2461 | * @since 2.6.0 Added the `$user_id` parameter. |
2455 | 2462 | * |
2456 | | * @param string $value URL to use for demoting a user to member. |
2457 | | * @param object $group Group object. |
| 2463 | * @param string $value URL to use for demoting a user to member. |
| 2464 | * @param object $group Group object. |
| 2465 | * @param int $user_id ID of the member to demote. |
2458 | 2466 | */ |
2459 | | return apply_filters( 'bp_get_group_member_demote_link', wp_nonce_url( bp_get_group_permalink( $group ) . 'admin/manage-members/demote/' . $user_id, 'groups_demote_member' ), $group ); |
| 2467 | return apply_filters( 'bp_get_group_member_demote_link', wp_nonce_url( bp_get_group_permalink( $group ) . 'admin/manage-members/demote/' . $user_id, 'groups_demote_member' ), $group, $user_id ); |
2460 | 2468 | } |
2461 | 2469 | |
2462 | 2470 | /** |
… |
… |
function bp_group_member_ban_link( $user_id = 0 ) { |
2497 | 2505 | * Filters a URL for banning a member from a group. |
2498 | 2506 | * |
2499 | 2507 | * @since 1.0.0 |
| 2508 | * @since 2.6.0 Added the `$group` and `$user_id` parameters. |
2500 | 2509 | * |
2501 | | * @param string $value URL to use for banning a member. |
| 2510 | * @param string $value URL to use for banning a member. |
| 2511 | * @param object $group Group object. |
| 2512 | * @param int $user_id ID of the member to ban. |
2502 | 2513 | */ |
2503 | | return apply_filters( 'bp_get_group_member_ban_link', wp_nonce_url( bp_get_group_permalink( $group ) . 'admin/manage-members/ban/' . $user_id, 'groups_ban_member' ) ); |
| 2514 | return apply_filters( 'bp_get_group_member_ban_link', wp_nonce_url( bp_get_group_permalink( $group ) . 'admin/manage-members/ban/' . $user_id, 'groups_ban_member' ), $group, $user_id ); |
2504 | 2515 | } |
2505 | 2516 | |
2506 | 2517 | /** |
… |
… |
function bp_group_member_unban_link( $user_id = 0 ) { |
2545 | 2556 | * Filters a URL for unbanning a member from a group. |
2546 | 2557 | * |
2547 | 2558 | * @since 1.0.0 |
| 2559 | * @since 2.6.0 Added the `$group` and `$user_id` parameters. |
2548 | 2560 | * |
2549 | 2561 | * @param string $value URL to use for unbanning a member. |
| 2562 | * @param object $group Group object. |
| 2563 | * @param int $user_id ID of the member to unban. |
2550 | 2564 | */ |
2551 | | return apply_filters( 'bp_get_group_member_unban_link', wp_nonce_url( bp_get_group_permalink( $group ) . 'admin/manage-members/unban/' . $user_id, 'groups_unban_member' ) ); |
| 2565 | return apply_filters( 'bp_get_group_member_unban_link', wp_nonce_url( bp_get_group_permalink( $group ) . 'admin/manage-members/unban/' . $user_id, 'groups_unban_member' ), $group, $user_id ); |
2552 | 2566 | } |
2553 | 2567 | |
2554 | 2568 | /** |
… |
… |
function bp_group_member_remove_link( $user_id = 0 ) { |
2590 | 2604 | * |
2591 | 2605 | * @since 1.2.6 |
2592 | 2606 | * @since 2.5.0 Added the `$group` parameter. |
| 2607 | * @since 2.6.0 Added the `$user_id` parameter. |
2593 | 2608 | * |
2594 | 2609 | * @param string $value URL to use for removing a member. |
2595 | 2610 | * @param object $group Group object. |
| 2611 | * @param int $user_id ID of the member to remove. |
2596 | 2612 | */ |
2597 | | return apply_filters( 'bp_get_group_member_remove_link', wp_nonce_url( bp_get_group_permalink( $group ) . 'admin/manage-members/remove/' . $user_id, 'groups_remove_member' ), $group ); |
| 2613 | return apply_filters( 'bp_get_group_member_remove_link', wp_nonce_url( bp_get_group_permalink( $group ) . 'admin/manage-members/remove/' . $user_id, 'groups_remove_member' ), $group, $user_id ); |
2598 | 2614 | } |
2599 | 2615 | |
2600 | 2616 | /** |
… |
… |
function bp_group_is_user_banned( $group = false, $user_id = 0 ) { |
2910 | 2926 | * |
2911 | 2927 | * @since 1.5.0 |
2912 | 2928 | * @since 2.5.0 Added the `$group` parameter. |
| 2929 | * @since 2.6.0 Added the `$user_id` parameter. |
2913 | 2930 | * |
2914 | 2931 | * @param bool $is_invited If user has been from current group. |
2915 | 2932 | * @param object $group Group object. |
| 2933 | * @param int $user_id ID of the user that is banned. |
2916 | 2934 | */ |
2917 | | return (bool) apply_filters( 'bp_group_is_user_banned', $retval, $group ); |
| 2935 | return (bool) apply_filters( 'bp_group_is_user_banned', $retval, $group, $user_id ); |
2918 | 2936 | } |
2919 | 2937 | |
2920 | 2938 | /** |
… |
… |
function bp_group_join_button( $group = false ) { |
3326 | 3344 | * Filters the HTML button for joining a group. |
3327 | 3345 | * |
3328 | 3346 | * @since 1.2.6 |
3329 | | * @since 2.4.0 Added $group parameter to filter args. |
| 3347 | * @since 2.4.0 Added the `$group` parameter. |
3330 | 3348 | * |
3331 | 3349 | * @param string $button HTML button for joining a group. |
3332 | 3350 | * @param object $group BuddyPress group object |
… |
… |
function bp_group_current_avatar( $type = 'thumb' ) { |
5127 | 5145 | * Filters the current group avatar. |
5128 | 5146 | * |
5129 | 5147 | * @since 2.0.0 |
| 5148 | * @since 2.6.0 Added the `$type` parameter. |
5130 | 5149 | * |
5131 | 5150 | * @param string $group_avatar HTML markup for current group avatar. |
| 5151 | * @param string $type Thumb or full. |
5132 | 5152 | */ |
5133 | | return apply_filters( 'bp_get_group_current_avatar', $group_avatar ); |
| 5153 | return apply_filters( 'bp_get_group_current_avatar', $group_avatar, $type ); |
5134 | 5154 | } |
5135 | 5155 | |
5136 | 5156 | /** |