LLMS_User_Certificate::update_sequential_id()
Set this awarded certificate sequential id based on the parent’s meta.
Return Return
(int|false) Returns the awarded certificate sequenatial id. Returns false if the awarded certificate has no parent template.
Source Source
File: includes/models/model.llms.user.certificate.php
public function update_sequential_id() {
$parent = $this->get( 'parent' );
if ( ! $parent ) {
return false;
}
$next_sequential_id = llms_get_certificate_sequential_id( $parent, true );
$this->set( 'sequential_id', $next_sequential_id );
return $next_sequential_id;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |