Courses Actions
22 unique action hooks currently map to this category, across 30 call sites.
Hook Inventory
| Hook | Edition | Call Sites | First Source |
|---|---|---|---|
fluent_community/course | Core | 2 | fluent-community/app/Http/Controllers/ProfileController.php:556 |
fluent_community/course/before_create | Core | 2 | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:147 |
fluent_community/course/before_delete | Core | 1 | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:405 |
fluent_community/course/before_progress_reset | Core | 1 | fluent-community/Modules/Course/Services/CourseHelper.php:302 |
fluent_community/course/completed | Core | 2 | fluent-community/Modules/Course/Services/CourseHelper.php:278 |
fluent_community/course/created | Core | 2 | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:182 |
fluent_community/course/deleted | Core | 1 | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:438 |
fluent_community/course/enrolled | Core | 2 | fluent-community/app/Services/Helper.php:1642 |
fluent_community/course/lesson_completed | Core | 1 | fluent-community/Modules/Course/Services/CourseHelper.php:211 |
fluent_community/course/lesson_marked_incomplete | Core | 1 | fluent-community/Modules/Course/Services/CourseHelper.php:195 |
fluent_community/course/progress_reset | Core | 1 | fluent-community/Modules/Course/Services/CourseHelper.php:323 |
fluent_community/course/published | Core | 1 | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:328 |
fluent_community/course/student_left | Core | 1 | fluent-community/app/Services/Helper.php:1712 |
fluent_community/course/updated | Core | 1 | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:326 |
fluent_community/course/welcome_banner_updated | PRO | 1 | fluent-community-pro/app/Http/Controllers/ProAdminController.php:469 |
fluent_community/lesson/before_deleted | Core | 3 | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:424 |
fluent_community/lesson/duplicated | Core | 1 | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:1132 |
fluent_community/lesson/updated | Core | 1 | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:1021 |
fluent_community/lesson/video_watched | Core | 1 | fluent-community/Modules/Course/Services/LessonVideoGateService.php:158 |
fluent_community/quiz/submitted | PRO | 1 | fluent-community-pro/app/Modules/Quiz/Http/Controllers/QuizController.php:164 |
fluent_community/section/before_deleted | Core | 2 | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:421 |
fluent_community/section/scheduled_at_updated | Core | 1 | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-community/app/Http/Controllers/ProfileController.php:556 | [&$course] (array) |
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:147 | $courseData (mixed) |
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-community/Modules/Course/Services/CourseHelper.php:278 | $course (mixed)$userId (mixed) |
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:182 | $course (mixed) |
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-community/app/Services/Helper.php:1642 | $space (Space |
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| PRO | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:424 | $courseLesson (mixed) |
| Core | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:864 | $lesson (mixed) |
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| PRO | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:421 | $courseTopic (mixed) |
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-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);