bp_activity_before_action_delete_activity, $activity_id, $activity->user_id
bp_activity_before_action_delete_activity, $activity_id, $activity->user_id
Appears in: buddypress.14.5.2
Hook Type: action
Displaying hooks found in version: buddypress.14.5.2do_action('bp_activity_before_action_delete_activity, $activity_id, $activity->user_id') is found 1 times:
- /bp-activity/actions/delete.php line 48
* * @param int $activity_id The activity ID. * @param int $user_id The user associated with the activity. */ do_action( 'bp_activity_before_action_delete_activity', $activity_id, $activity->user_id ); // Delete the activity item and provide user feedback. if ( bp_activity_delete( array( 'id' => $activity_id, 'user_id' => $activity->user_id ) ) ) bp_core_add_message( __( 'Activity deleted successfully', 'buddypress' ) ); else bp_core_add_message( __( 'There was an error when deleting that activity', 'buddypress' ), 'error' );