LLMS_Helper_Add_On::install()
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 install() {
$ret = LLMS_Helper()->upgrader()->install_addon( $this );
if ( true === $ret ) {
/* Translators: %s = Add-on name */
return sprintf( __( '%s was successfully installed.', 'lifterlms' ), $this->get( 'title' ) );
} elseif ( is_wp_error( $ret ) ) {
return $ret;
}
/* Translators: %s = Add-on name */
return new WP_Error( 'activation', sprintf( __( 'Could not install %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. |