LLMS_Helper_Add_On::install()

Install the add-on via LifterLMS.com


Return Return

(string|WP_Error)


Top ↑

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' ) ) );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.4.0 Use core textdomain.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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