LLMS_REST_Install::update_version( string $version = null )
Update the LifterLMS rest version record to the latest version
Parameters Parameters
- $version
-
(string) (Optional) version number.
Default value: null
Return Return
(void)
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 );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0-beta.1 | Introduced. |