Skip to content

Courses Actions

22 unique action hooks currently map to this category, across 30 call sites.

Hook Inventory

HookEditionCall SitesFirst Source
fluent_community/courseCore2fluent-community/app/Http/Controllers/ProfileController.php:556
fluent_community/course/before_createCore2fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:147
fluent_community/course/before_deleteCore1fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:405
fluent_community/course/before_progress_resetCore1fluent-community/Modules/Course/Services/CourseHelper.php:302
fluent_community/course/completedCore2fluent-community/Modules/Course/Services/CourseHelper.php:278
fluent_community/course/createdCore2fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:182
fluent_community/course/deletedCore1fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:438
fluent_community/course/enrolledCore2fluent-community/app/Services/Helper.php:1642
fluent_community/course/lesson_completedCore1fluent-community/Modules/Course/Services/CourseHelper.php:211
fluent_community/course/lesson_marked_incompleteCore1fluent-community/Modules/Course/Services/CourseHelper.php:195
fluent_community/course/progress_resetCore1fluent-community/Modules/Course/Services/CourseHelper.php:323
fluent_community/course/publishedCore1fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:328
fluent_community/course/student_leftCore1fluent-community/app/Services/Helper.php:1712
fluent_community/course/updatedCore1fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:326
fluent_community/course/welcome_banner_updatedPRO1fluent-community-pro/app/Http/Controllers/ProAdminController.php:469
fluent_community/lesson/before_deletedCore3fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:424
fluent_community/lesson/duplicatedCore1fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:1132
fluent_community/lesson/updatedCore1fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:1021
fluent_community/lesson/video_watchedCore1fluent-community/Modules/Course/Services/LessonVideoGateService.php:158
fluent_community/quiz/submittedPRO1fluent-community-pro/app/Modules/Quiz/Http/Controllers/QuizController.php:164
fluent_community/section/before_deletedCore2fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:421
fluent_community/section/scheduled_at_updatedCore1fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:792

fluent_community/course

  • Type: action
  • Edition: Core
  • Call sites: 2
  • When it fires: Course hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Http/Controllers/ProfileController.php:556[&$course] (array)
Corefluent-community/Modules/Course/Http/Controllers/CourseController.php:77[&$course] (array)

Example

php
add_action('fluent_community/course', function ($course) {
}, 10, 1);

fluent_community/course/before_create

  • Type: action
  • Edition: Core
  • Call sites: 2
  • When it fires: Course/Before Create hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:147$courseData (mixed)
Corefluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:362$courseData (mixed)

Example

php
add_action('fluent_community/course/before_create', function ($courseData) {
}, 10, 1);

fluent_community/course/before_delete

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Course/Before Delete hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:405$course (mixed)

Example

php
add_action('fluent_community/course/before_delete', function ($course) {
}, 10, 1);

fluent_community/course/before_progress_reset

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Course/Before Progress Reset hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Course/Services/CourseHelper.php:302$course (mixed)
$userId (mixed)

Example

php
add_action('fluent_community/course/before_progress_reset', function ($course, $userId) {
}, 10, 2);

fluent_community/course/completed

  • Type: action
  • Edition: Core
  • Call sites: 2
  • When it fires: Course/Completed hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Course/Services/CourseHelper.php:278$course (mixed)
$userId (mixed)
Corefluent-community/Modules/Course/Services/CourseHelper.php:290$course (mixed)
$userId (mixed)

Example

php
add_action('fluent_community/course/completed', function ($course, $userId) {
}, 10, 2);

fluent_community/course/created

  • Type: action
  • Edition: Core
  • Call sites: 2
  • When it fires: Course/Created hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:182$course (mixed)
Corefluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:393$newCourse (mixed)

Example

php
add_action('fluent_community/course/created', function ($course) {
}, 10, 1);

fluent_community/course/deleted

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Course/Deleted hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:438$courseId (mixed)

Example

php
add_action('fluent_community/course/deleted', function ($courseId) {
}, 10, 1);

fluent_community/course/enrolled

  • Type: action
  • Edition: Core
  • Call sites: 2
  • When it fires: Course/Enrolled hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Services/Helper.php:1642$space (Space
Corefluent-community/app/Services/Helper.php:1663$space (Space

Example

php
add_action('fluent_community/course/enrolled', function ($space, $userId, $by) {
}, 10, 3);

fluent_community/course/lesson_completed

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Course/Lesson Completed hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Course/Services/CourseHelper.php:211$lesson (mixed)
$userId (mixed)

Example

php
add_action('fluent_community/course/lesson_completed', function ($lesson, $userId) {
}, 10, 2);

fluent_community/course/lesson_marked_incomplete

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Course/Lesson Marked Incomplete hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Course/Services/CourseHelper.php:195$lesson (mixed)
$userId (mixed)

Example

php
add_action('fluent_community/course/lesson_marked_incomplete', function ($lesson, $userId) {
}, 10, 2);

fluent_community/course/progress_reset

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Course/Progress Reset hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Course/Services/CourseHelper.php:323$course (mixed)
$userId (mixed)

Example

php
add_action('fluent_community/course/progress_reset', function ($course, $userId) {
}, 10, 2);

fluent_community/course/published

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Course/Published hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:328$course (mixed)

Example

php
add_action('fluent_community/course/published', function ($course) {
}, 10, 1);

fluent_community/course/student_left

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Course/Student Left hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Services/Helper.php:1712$space (Space

Example

php
add_action('fluent_community/course/student_left', function ($space, $userId, $by) {
}, 10, 3);

fluent_community/course/updated

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Course/Updated hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:326$course (mixed)
$dirtyFields (mixed)
$prevCourse (mixed)

Example

php
add_action('fluent_community/course/updated', function ($course, $dirtyFields, $prevCourse) {
}, 10, 3);

fluent_community/course/welcome_banner_updated

  • Type: action
  • Edition: PRO
  • Call sites: 1
  • When it fires: Course/Welcome Banner Updated hook emitted from the current call site.

Call Sites

EditionSourceParameters
PROfluent-community-pro/app/Http/Controllers/ProAdminController.php:469$course (mixed)
$settings (mixed)

Example

php
add_action('fluent_community/course/welcome_banner_updated', function ($course, $settings) {
}, 10, 2);

fluent_community/lesson/before_deleted

  • Type: action
  • Edition: Core
  • Call sites: 3
  • When it fires: Lesson/Before Deleted hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:424$courseLesson (mixed)
Corefluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:864$lesson (mixed)
Corefluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:1074$lesson (mixed)

Example

php
add_action('fluent_community/lesson/before_deleted', function ($courseLesson) {
}, 10, 1);

fluent_community/lesson/duplicated

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Lesson/Duplicated hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:1132$newLesson (mixed)
$lesson (mixed)

Example

php
add_action('fluent_community/lesson/duplicated', function ($newLesson, $lesson) {
}, 10, 2);

fluent_community/lesson/updated

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Lesson/Updated hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:1021$lesson (mixed)
$dirtyFields (mixed)
$isNewlyPublished (mixed)

Example

php
add_action('fluent_community/lesson/updated', function ($lesson, $dirtyFields, $isNewlyPublished) {
}, 10, 3);

fluent_community/lesson/video_watched

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Lesson/Video Watched hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Course/Services/LessonVideoGateService.php:158$lesson (mixed)
$userId (mixed)

Example

php
add_action('fluent_community/lesson/video_watched', function ($lesson, $userId) {
}, 10, 2);

fluent_community/quiz/submitted

  • Type: action
  • Edition: PRO
  • Call sites: 1
  • When it fires: Quiz/Submitted hook emitted from the current call site.

Call Sites

EditionSourceParameters
PROfluent-community-pro/app/Modules/Quiz/Http/Controllers/QuizController.php:164$quizResult (mixed)
$user (mixed)
$quiz (mixed)

Example

php
add_action('fluent_community/quiz/submitted', function ($quizResult, $user, $quiz) {
}, 10, 3);

fluent_community/section/before_deleted

  • Type: action
  • Edition: Core
  • Call sites: 2
  • When it fires: Section/Before Deleted hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:421$courseTopic (mixed)
Corefluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:854$topic (mixed)

Example

php
add_action('fluent_community/section/before_deleted', function ($courseTopic) {
}, 10, 1);

fluent_community/section/scheduled_at_updated

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Section/Scheduled At Updated hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:792$course (mixed)
$topic (mixed)

Example

php
add_action('fluent_community/section/scheduled_at_updated', function ($course, $topic) {
}, 10, 2);

FluentCommunity developer documentation