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