# Mentions::notify_content_mentions()

Notify the members @mentioned in content that lives outside the feed (forums, for example).

Honours each member's privacy setting and never notifies the author. The wording comes from the message registry
(`mention.title`, `mention.message_generic`), so site owners can reword it.

```php
notify_content_mentions( string $content, int $author_id, string $url, string $object_type, int $object_id, string $location = '' ): int
```

## Parameters

- `$content` (string) HTML or text containing `@username` mentions.
- `$author_id` (int) Author.
- `$url` (string) Where the notification leads.
- `$object_type` (string) Short type of the content, for example `forum_topic` or `forum_reply`.
- `$object_id` (int) Content id.
- `$location` (string) Where it was written, for example the topic title.

## Return

`int` Number of members notified.

## Changelog

| Version | Description |
| --- | --- |
| 1.5.0 | Introduced |
