mute_delete

Delete all mute records relating to a given user.

Description

mute_delete( (int) $user_id ); 

Parameters (1)

0. $user_id (int)
The ID of the identicon owner.

Usage

  1. if ( !function_exists( 'mute_delete' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress-mute/inc/functions.php'; 
  3.  
  4. // The ID of the identicon owner. 
  5. $user_id = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = mute_delete($user_id); 
  9.  

Defined (1)

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

/inc/functions.php  
  1. function mute_delete( $user_id ) { 
  2. Mute::delete_all( $user_id );