Clanbite Social Kit Since 1.5.0
notify_content_mentions( string $content, int $author_id, string $url, string $object_type, int $object_id, string $location = '' ): intNotify 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.
public static
Class: Kernowdev\ClanbiteSocialKit\Social\Mentions
Parameters
$content(string) RequiredHTML or text containing
@usernamementions.$author_id(int) RequiredAuthor.
$url(string) RequiredWhere the notification leads.
$object_type(string) RequiredShort type of the content, for example
forum_topicorforum_reply.$object_id(int) RequiredContent id.
$location(string) OptionalWhere it was written, for example the topic title.
Default:
''
Returns
int Number of members notified.
Defined in inc/Social/Mentions.php
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |