bp_get_group_invite_user_remove_invite_url()
Get cancel invite url for displayed member group invite in loop.
Description
Return
(string)
Source
File: bp-groups/bp-groups-template.php
function bp_get_group_invite_user_remove_invite_url() { global $invites_template; $user_id = intval( $invites_template->invite->user->id ); if ( bp_is_current_action( 'create' ) ) { $uninvite_url = bp_get_groups_directory_permalink() . 'create/step/group-invites/?user_id=' . $user_id; } else { $uninvite_url = trailingslashit( bp_get_group_permalink( groups_get_current_group() ) . 'send-invites/remove/' . $user_id ); } return wp_nonce_url( $uninvite_url, 'groups_invite_uninvite_user' ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.1.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.