bp_cover_group_position

The BuddyPress cover bp cover group position function.

Description

bp_cover_group_position(); 

Usage

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

Defined (1)

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

/bp-cover-group.php  
  1. function bp_cover_group_position( ) { 
  2. $group_id=bp_get_current_group_id();  
  3. $id = ( isset( $_POST['id'] ) ) ? $_POST['id'] : ''; 
  4. groups_update_groupmeta( $group_id, 'bp_cover_group_position', $id ); 
  5. if( empty( $id ) ) 
  6. return; 
  7. echo $id;