apply_filters( 'llms_course_to_array_disable_prop_exclusion', boolean $disable )

Disable course property exclusion while running toArray().

Description Description

This hook is intended to allow developers to retain the functionality implemented prior to the introduction of this hook.

The LifterLMS developers consider the presence of these properties to be a bug but acknowledge that the removal of these properties could be seen as a backwards incompatible "feature" removal.

This hook disables the exclusion of the following properties: ‘average_grade’, ‘average_progress’, ‘enrolled_students’, ‘last_data_calc_run’, and ‘temp_calc_data’. Any excluded properties added in the future will not be excluded when using this hook.

Top ↑

Parameters Parameters


(boolean) Whether or not to disable property exclusions.

Top ↑

Source Source

File: includes/models/model.llms.course.php

View on GitHub

Top ↑

Changelog Changelog

Version Description
5.4.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.