bbp_deleted_reply

Called after deleting a reply.

Description

bbp_deleted_reply( (int) $reply_id = 0 ); 

Parameters (1)

0. $reply_id — Optional. (int)
The reply id.

Usage

  1. if ( !function_exists( 'bbp_deleted_reply' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/replies/functions.php'; 
  3.  
  4. // The reply id. 
  5. $reply_id = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bbp_deleted_reply($reply_id); 
  9.  

Defined (1)

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

/includes/replies/functions.php  
  1. function bbp_deleted_reply( $reply_id = 0 ) { 
  2. $reply_id = bbp_get_reply_id( $reply_id ); 
  3.  
  4. if ( empty( $reply_id ) || !bbp_is_reply( $reply_id ) ) 
  5. return false; 
  6.  
  7. do_action( 'bbp_deleted_reply', $reply_id );