LLMS_Add_On::get_install_status( bool $translate = false )

Determine the status of an addon’s license


Description Description


Parameters Parameters

$translate

(bool) (Optional) if true, returns the translated string for on-screen display

Default value: false


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/models/model.llms.add-on.php

	public function get_install_status( $translate = false ) {

		if ( ! $this->is_installable() ) {
			$ret = 'none';
		} else {
			$ret = $this->is_installed() ? 'installed' : 'uninstalled';
		}

		return $translate ? $this->get_l10n( $ret ) : $ret;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.22.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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