apply_filters( 'sensei_course_enrolment_store_results', $store_results, $user_id, $course_id, $had_existing_value, $enrolment_results ) → {bool}
Filter on whether course enrolment results should be stored.
Parameters:
Name | Type | Description |
---|---|---|
$store_results |
bool | Whether to store the results. |
$user_id |
int | User ID. |
$course_id |
int | Course post ID. |
$had_existing_value |
bool | True if a stale enrolment result is already stored. |
$enrolment_results |
Sensei_Course_Enrolment_Provider_Results | Enrolment results object. |
- Since:
- 3.0.0
- Source:
Returns:
Filtered value.
- Type
- bool