LLMS_Blocks_Post_Instructors::maybe_set_default_instructor( int $post_id, WP_Post $post, bool $update )
Automatically sets instructor data when a new course/membership is created.
Description Description
Parameters Parameters
- $post_id
-
(Required) WP_Post ID.
- $post
-
(Required) Post object.
- $update
-
(Required) Whether the save is an update (
true
) or a creation (false
).
Return Return
(bool)
Source Source
File: libraries/lifterlms-blocks/includes/class-llms-blocks-post-instructors.php
Changelog Changelog
Version | Description |
---|---|
1.6.0 | Introduced. |