This repository was archived by the owner on Jul 17, 2026. It is now read-only.
Version 1.0.0-beta.27
·
197 commits
to release
since this release
v1.0.0-beta.27 - 2023-05-31
Updates and Enhancements
- Replaced use of deprecated
strftime(). - Replaced use of the deprecated
FILTER_SANITIZE_STRINGconstant.
Developer Notes
- Fixed unit tests on WordPress 6.2.
- Allow all the resources to be extended using
register_rest_field(). #157 - Added the ability for all the
WP_PostandWP_Userbased resources to manage custom meta registered viaregister_meta(). #157 - Added
llms_rest_{$object_type}_item_schemathat will allow filtering any resource schema. Additional schema fields, added viaregister_rest_field(), are not included. #157 - Added
llms_rest_allow_filtering_{$object_type}_item_schema_to_add_fieldsfilter hook. It allows adding additional fields using the filter hookllms_rest_{$object_type}_item_schemawithout warnings. By default additional fields should be added viaregister_rest_field(). #157 - Deprecated
llms_rest_enrollments_item_schemaandllms_rest_membership_item_schemafilter hooks in favor ofllms_rest_$object_type_item_schemawhere the object type is, respectively, equal to 'students-enrollments' and 'llms-membership'. #157
Performance Improvements
- Cache results of get_item_schema on controller instances for performance. Additional schema fields, added via
register_rest_field(), are not cached. #73