bp_notification_before_delete, $args
bp_notification_before_delete, $args
Appears in: buddypress.14.5.2
Hook Type: action
Displaying hooks found in version: buddypress.14.5.2do_action('bp_notification_before_delete, $args') is found 2 times:
- /bp-notifications/classes/class-bp-notifications-notification.php line 1002
* @param array $args Associative array of columns/values, to determine * which rows should be deleted. Of the format * array( 'item_id' => 7, 'component_action' => 'members' ). */ do_action( 'bp_notification_before_delete', $args ); return self::_delete( $where['data'], $where['format'] ); } /** * Delete notifications using a list of ids/items_ids.
- /bp-notifications/classes/class-bp-notifications-notification.php line 1057
$args['id'] = $items; } /** This action is documented in bp-notifications/classes/class-bp-notifications-notification.php */ do_action( 'bp_notification_before_delete', $args ); if ( ! $values ) { return $wpdb->query( "DELETE FROM {$bp->notifications->table_name} WHERE {$conditions}" ); } return $wpdb->query( $wpdb->prepare( "DELETE FROM {$bp->notifications->table_name} WHERE {$conditions}", $values ) );