LLMS_Helper_Add_On::update()
Install the add-on via LifterLMS.com
Return Return
(string|WP_Error)
Source Source
File: libraries/lifterlms-helper/includes/models/class-llms-helper-add-on.php
public function update() {
$ret = LLMS_Helper()->upgrader()->install_addon( $this, 'update' );
if ( true === $ret ) {
/* Translators: %s = Add-on name */
return sprintf( __( '%s was successfully updated.', 'lifterlms' ), $this->get( 'title' ) );
} elseif ( is_wp_error( $ret ) ) {
return $ret;
}
/* Translators: %s = Add-on name */
return new WP_Error( 'activation', sprintf( __( 'Could not update %s.', 'lifterlms' ), $this->get( 'title' ) ) );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.4.0 | Use core textdomain. |
| 3.0.0 | Introduced. |