Determines if the add-on is installable

Return Return


Top ↑

Source Source

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

	public function is_installable() {
		return ( $this->get( 'update_file' ) && in_array( $this->get_type(), array( 'plugin', 'theme' ), true ) );

Top ↑

Changelog Changelog

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

Top ↑

User Contributed Notes User Contributed Notes

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