bp_get_group_invite_user_remove_invite_url

The BuddyPress bp get group invite user remove url function.

Description

(string) bp_get_group_invite_user_remove_invite_url(); 

Returns (string)


Usage

  1. if ( !function_exists( 'bp_get_group_invite_user_remove_invite_url' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-groups/bp-groups-template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_get_group_invite_user_remove_invite_url(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-groups/bp-groups-template.php  
  1. function bp_get_group_invite_user_remove_invite_url() { 
  2. global $invites_template; 
  3.  
  4. $user_id = intval( $invites_template->invite->user->id ); 
  5.  
  6. if ( bp_is_current_action( 'create' ) ) { 
  7. $uninvite_url = bp_get_groups_directory_permalink() . 'create/step/group-invites/?user_id=' . $user_id; 
  8. } else { 
  9. $uninvite_url = bp_get_group_permalink( groups_get_current_group() ) . 'send-invites/remove/' . $user_id; 
  10.  
  11. return wp_nonce_url( $uninvite_url, 'groups_invite_uninvite_user' );