Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_REST_Access_Plans_Controller::handle_props_interdependency( array $to_set, LLMS_Access_Plan $access_plan, bool $creating )
Handle properties interdependency
Parameters Parameters
- $to_set
-
(array) (Required) Array of properties to be set.
- $access_plan
-
(LLMS_Access_Plan) (Required) LLMS Access Plan instance.
- $creating
-
(bool) (Required) Whether we're in creation or update phase.
Return Return
(void)
Source Source
File: libraries/lifterlms-rest/includes/server/class-llms-rest-access-plans-controller.php
$this->add_subordinate_props( $to_set, $saved_props, $creating ); $this->unset_subordinate_props( $to_set, $saved_props ); } /** * Add all the properties which need to be set as consequence of another setting * * These properties must be compared to the saved value before updating, because if equal they will produce an error(see update_post_meta()).
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.18 | Introduced. |