LLMS_Lesson::set_parent_section( int $section_id )
Set parent section
Description Description
Sets parent section in database.
Parameters Parameters
- $section_id
-
(int) (Required) The WP Post ID of the section to be set as parent.
Return Return
(mixed) $meta If meta didn't exist returns the meta_id else t/f if update success. Returns false
if the provided section id value was already set.
Source Source
File: includes/models/model.llms.lesson.php
public function set_parent_section( $section_id ) { return update_post_meta( $this->id, '_llms_parent_section', $section_id ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
unknown | Introduced. |