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 2 times:
- /bp-templates/bp-legacy/buddypress-functions.php line 1185
exit( '-1' ); } /** This action is documented in bp-activity/bp-activity-actions.php */ do_action( 'bp_activity_before_action_delete_activity', $activity->id, $activity->user_id ); if ( ! bp_activity_delete( array( 'id' => $activity->id, 'user_id' => $activity->user_id ) ) ) { exit( '-1<div id="message" class="error bp-ajax-message"><p>' . esc_html__( 'There was a problem when deleting. Please try again.', 'buddypress' ) . '</p></div>' ); } /** This action is documented in bp-activity/bp-activity-actions.php */ - /bp-templates/bp-nouveau/includes/activity/ajax.php line 235
wp_send_json_error( $response ); } /** This action is documented in bp-activity/bp-activity-actions.php */ do_action( 'bp_activity_before_action_delete_activity', $activity->id, $activity->user_id ); // Deleting an activity comment. if ( ! empty( $_POST['is_comment'] ) ) { // Get replies before they are deleted. $replies = (array) BP_Activity_Activity::get_child_comments( $activity->id ); $reply_ids = wp_list_pluck( $replies, 'id' );