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

	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.