Skip to content

Courses Actions

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

Hook Inventory

HookEditionCall SitesFirst Source
fluent_community/course/before_createCore2fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:131
fluent_community/course/before_deleteCore1fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:386
fluent_community/course/completedCore2fluent-community/Modules/Course/Services/CourseHelper.php:260
fluent_community/course/createdCore2fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:166
fluent_community/course/deletedCore1fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:419
fluent_community/course/enrolledCore2fluent-community/app/Services/Helper.php:1613
fluent_community/course/lesson_completedCore1fluent-community/Modules/Course/Services/CourseHelper.php:193
fluent_community/course/publishedCore1fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:309
fluent_community/course/student_leftCore1fluent-community/app/Services/Helper.php:1683
fluent_community/course/updatedCore1fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:307
fluent_community/lesson/before_deletedCore3fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:405
fluent_community/lesson/updatedCore1fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:967
fluent_community/quiz/submittedPRO1fluent-community-pro/app/Modules/Quiz/Http/Controllers/QuizController.php:153
fluent_community/section/before_deletedCore2fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:402
fluent_community/section/scheduled_at_updatedCore1fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:751

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:131$courseData (mixed)
Corefluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:343$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:386$course (mixed)

Example

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

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:260$course (mixed)
$userId (mixed)
Corefluent-community/Modules/Course/Services/CourseHelper.php:272$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:166$course (mixed)
Corefluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:374$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:419$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:1613$space (Space
Corefluent-community/app/Services/Helper.php:1634$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:193$lesson (mixed)
$userId (mixed)

Example

php
add_action('fluent_community/course/lesson_completed', function ($lesson, $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:309$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:1683$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:307$course (mixed)
$dirtyFields (mixed)
$prevCourse (mixed)

Example

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

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:405$courseLesson (mixed)
Corefluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:815$lesson (mixed)
Corefluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:1017$lesson (mixed)

Example

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

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:967$lesson (mixed)
$dirtyFields (mixed)
$isNewlyPublished (mixed)

Example

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

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:153$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:402$courseTopic (mixed)
Corefluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:805$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:751$course (mixed)
$topic (mixed)

Example

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

FluentCommunity developer documentation