Clanbite Social Kit Since 1.5.0
clanbite_social_kit_notify_mentions( string $content, int $author_id, string $url, string $object_type, int $object_id, string $location = '' ): intNotify the members @mentioned in content outside the feed.
Needs the Notifications extension; honours each member's privacy setting and never notifies the author.
Parameters
$content(string) RequiredText or HTML with
@usernamementions.$author_id(int) RequiredAuthor.
$url(string) RequiredWhere the notification leads.
$object_type(string) RequiredShort type, for example
forum_topic.$object_id(int) RequiredContent id.
$location(string) OptionalWhere it was written (shown in the notification), for example the topic title.
Default:
''
Returns
int Number of members notified.
Defined in inc/functions-global.php
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |