# Data_Access::accept_friend_request()

Accept a pending request where current user is the target (friend_user_id).

```php
accept_friend_request( int $friendship_id, int $accepting_id )
```

## Parameters

- `$friendship_id` (int) Row ID.
- `$accepting_id` (int) Must match friend_user_id on the row.

## Return

`bool|\WP_Error`
