Courses Actions
15 unique action hooks currently map to this category, across 22 call sites.
Hook Inventory
| Hook | Edition | Call Sites | First Source |
|---|---|---|---|
fluent_community/course/before_create | Core | 2 | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:131 |
fluent_community/course/before_delete | Core | 1 | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:386 |
fluent_community/course/completed | Core | 2 | fluent-community/Modules/Course/Services/CourseHelper.php:260 |
fluent_community/course/created | Core | 2 | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:166 |
fluent_community/course/deleted | Core | 1 | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:419 |
fluent_community/course/enrolled | Core | 2 | fluent-community/app/Services/Helper.php:1613 |
fluent_community/course/lesson_completed | Core | 1 | fluent-community/Modules/Course/Services/CourseHelper.php:193 |
fluent_community/course/published | Core | 1 | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:309 |
fluent_community/course/student_left | Core | 1 | fluent-community/app/Services/Helper.php:1683 |
fluent_community/course/updated | Core | 1 | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:307 |
fluent_community/lesson/before_deleted | Core | 3 | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:405 |
fluent_community/lesson/updated | Core | 1 | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:967 |
fluent_community/quiz/submitted | PRO | 1 | fluent-community-pro/app/Modules/Quiz/Http/Controllers/QuizController.php:153 |
fluent_community/section/before_deleted | Core | 2 | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:402 |
fluent_community/section/scheduled_at_updated | Core | 1 | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:131 | $courseData (mixed) |
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-community/Modules/Course/Services/CourseHelper.php:260 | $course (mixed)$userId (mixed) |
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:166 | $course (mixed) |
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-community/app/Services/Helper.php:1613 | $space (Space |
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:405 | $courseLesson (mixed) |
| Core | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:815 | $lesson (mixed) |
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| PRO | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:402 | $courseTopic (mixed) |
| Core | fluent-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
| Edition | Source | Parameters |
|---|---|---|
| Core | fluent-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);