Skip to content

Notifications Filters

6 unique filter hooks currently map to this category, across 6 call sites.

Hook Inventory

HookEditionCall SitesFirst Source
fluent_community/default_course_email_notificationPRO1fluent-community-pro/app/Services/ProHelper.php:178
fluent_community/digest_email_bodyCore1fluent-community/app/Services/Libs/DailyDigest.php:118
fluent_community/digest_email_subjectCore1fluent-community/app/Services/Libs/DailyDigest.php:148
fluent_community/digest_notification/email_sectionsCore1fluent-community/app/Services/Libs/DailyDigest.php:105
fluent_community/notifications_api_responseCore1fluent-community/app/Http/Controllers/NotificationsController.php:37
fluent_community/unread_notifications_api_responseCore1fluent-community/app/Http/Controllers/NotificationsController.php:57

fluent_community/default_course_email_notification

  • Type: filter
  • Edition: PRO
  • Call sites: 1
  • When it fires: Default Course Email Notification hook emitted from the current call site.

Call Sites

EditionSourceParameters
PROfluent-community-pro/app/Services/ProHelper.php:178[ 'subject' => '{​{section.title}​} is now available for you in {​{course.title}​}', 'message' => 'Hi {​{user.display_name}​},' . PHP_EOL . PHP_EOL . '{​{section.title}​} is now available to you in {​{course.title}​}.' . PHP_EOL . 'To complete this section, please follow this link:' . PHP_EOL . '{​{section.url}​},' . PHP_EOL . PHP_EOL . 'Thanks,' . PHP_EOL .'{​{community.name_with_url}​}' ] (array)

Example

php
add_filter('fluent_community/default_course_email_notification', function ($param1) {
    return $param1;
}, 10, 1);

fluent_community/digest_email_body

  • Type: filter
  • Edition: Core
  • Call sites: 1
  • When it fires: Digest Email Body hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Services/Libs/DailyDigest.php:118$emailBody (mixed)
$this->user (mixed)

Example

php
add_filter('fluent_community/digest_email_body', function ($emailBody, $user) {
    return $emailBody;
}, 10, 2);

fluent_community/digest_email_subject

  • Type: filter
  • Edition: Core
  • Call sites: 1
  • When it fires: Digest Email Subject hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Services/Libs/DailyDigest.php:148$emailSubject (mixed)
$this->user (mixed)
$notificationCount (mixed)

Example

php
add_filter('fluent_community/digest_email_subject', function ($emailSubject, $user, $notificationCount) {
    return $emailSubject;
}, 10, 3);

fluent_community/digest_notification/email_sections

  • Type: filter
  • Edition: Core
  • Call sites: 1
  • When it fires: Digest Notification/Email Sections hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Services/Libs/DailyDigest.php:105[ 'before_content' => '', 'after_content' => '' ] (array)
$this->user (mixed)

Example

php
add_filter('fluent_community/digest_notification/email_sections', function ($param1, $user) {
    return $param1;
}, 10, 2);

fluent_community/notifications_api_response

  • Type: filter
  • Edition: Core
  • Call sites: 1
  • When it fires: Notifications API Response hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Http/Controllers/NotificationsController.php:37$data (mixed)
$request->all() (array)

Example

php
add_filter('fluent_community/notifications_api_response', function ($data, $all) {
    return $data;
}, 10, 2);

fluent_community/unread_notifications_api_response

  • Type: filter
  • Edition: Core
  • Call sites: 1
  • When it fires: Unread Notifications API Response hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Http/Controllers/NotificationsController.php:57$data (mixed)
$request->all() (array)

Example

php
add_filter('fluent_community/unread_notifications_api_response', function ($data, $all) {
    return $data;
}, 10, 2);

FluentCommunity developer documentation