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.


Top ↑

Source Source

File: includes/models/model.llms.user.certificate.php

116
117
118
119
120
121
122
123
124
125
126
127
128
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;
 
}


Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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