LLMS_Add_On::get_status( bool $translate = false )

Get the addon’s status


Parameters Parameters

$translate

(bool) (Optional) If true, translates the status 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_status( $translate = false ) {

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

		if ( $translate ) {
			$ret = $this->get_l10n( $ret );
		}

		return $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.