bp_cover_delete

The BuddyPress cover bp cover delete function.

Description

bp_cover_delete( $activity_id ); 

Parameters (1)

0. $activity_id
The activity id.

Usage

  1. if ( !function_exists( 'bp_cover_delete' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress-cover/bp-cover.php'; 
  3.  
  4. // The activity id. 
  5. $activity_id = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_cover_delete($activity_id); 
  9.  

Defined (1)

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

/bp-cover.php  
  1. function bp_cover_delete($activity_id) { 
  2. global $bp; 
  3. delete_user_meta(bp_loggedin_user_id(), 'bp_cover');  
  4. delete_user_meta(bp_loggedin_user_id(), 'bp_cover_position');  
  5. die();