LLMS_Lesson::set_parent_section( int $section_id )

Set parent section


Description Description

Sets parent section in database.


Top ↑

Parameters Parameters

$section_id

(int) (Required) The WP Post ID of the section to be set as parent.


Top ↑

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.


Top ↑

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 );

	}

Top ↑

Changelog Changelog

Changelog
Version Description
unknown Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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