LLMS_Add_On::is_installed()

Determine if the add-on is currently installed


Return Return

(bool)


Top ↑

Source Source

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

	}

	/**
	 * Determines if the add-on is installable
	 *
	 * @since 3.22.0
	 * @since 3.22.1 Unknown.
	 * @since 4.21.3 Use strict comparison for `in_array()`.
	 *
	 * @return boolean
	 */
	public function is_installable() {
		return ( $this->get( 'update_file' ) && in_array( $this->get_type(), array( 'plugin', 'theme' ), true ) );
	}

	/**
	 * Determine if the add-on is currently installed


Top ↑

Changelog Changelog

Changelog
Version Description
4.21.3 Use strict comparison for in_array().
3.22.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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