# Mentions::render_mentions()

Render content with mentions as links.

Works on plain text and on HTML: only text is touched (never attributes, and never text inside links, code or pre blocks).
Members who limited who may mention them (Privacy → @Mentions) stay plain text when the author may not mention them.

```php
render_mentions( string $content, int $author_id = 0 ): string
```

## Parameters

- `$content` (string) Post, comment or forum HTML.
- `$author_id` (int) Author of the content, so each mentioned member's privacy setting can apply (0 skips the check).

## Return

`string` Content with mention links.

## Changelog

| Version | Description |
| --- | --- |
| 1.5.0 | Updated |
