# Data_Access::insert_post_media_rows()

Link attachment rows to a social post (validated by caller).

```php
insert_post_media_rows( int $social_post_id, array $attachment_ids ): void
```

## Parameters

- `$social_post_id` (int) Social post ID.
- `$attachment_ids` (int[]) Attachment IDs in order.

## Return

`void`
