LLMS_REST_Install::update_version( string $version = null )

Update the LifterLMS rest version record to the latest version

Parameters Parameters


(string) (Optional) version number.

Default value: null

Top ↑

Return Return


Top ↑

Source Source

File: libraries/lifterlms-rest/includes/class-llms-rest-install.php

	public static function update_version( $version = null ) {
		delete_option( 'llms_rest_version' );
		add_option( 'llms_rest_version', is_null( $version ) ? LLMS_REST_API()->version : $version );

Top ↑

Changelog Changelog

Version Description
1.0.0-beta.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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