LLMS_Add_On::get_type()
Get the type of addon
Description Description
Return Return
(string)
Source Source
File: includes/models/model.llms.add-on.php
public function get_type() { $type = $this->get( 'type' ); if ( $type ) { return $type; } $cats = array_keys( $this->get( 'categories' ) ); if ( in_array( 'bundles', $cats ) ) { $type = 'bundle'; } elseif ( in_array( 'third-party', $cats ) ) { $type = 'external'; } else { $type = 'support'; } return $type; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.22.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: