LLMS_Abstract_Email_Provider::install()
Install the plugin via the WP plugin installer.
Return Return
(boolean|WP_Error) Error object or true when successful.
Source Source
File: includes/abstracts/llms-abstract-email-provider.php
protected function install() {
// Check if the plugin already exists and activate it if it is.
$ret = $this->activate_already_installed_plugin();
// Plugin doesn't exist, install it.
if ( false === $ret ) {
$ret = $this->install_plugin();
}
// Final check to ensure the connector is installed and activated.
if ( true === $ret && ! $this->is_installed() ) {
// Translators: %s = title of the email delivery plugin.
return new WP_Error( 'llms_' . $this->id . '_not_found', sprtinf( __( '%s plugin not found. Please try again.', 'lifterlms' ), $this->get_title() ), $install );
}
return $ret;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.40.0 | Introduced. |