LLMS_Add_On::get_type()
Get the type of addon
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, true ) ) { $type = 'bundle'; } elseif ( in_array( 'third-party', $cats, true ) ) { $type = 'external'; } else { $type = 'support'; } return $type; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.21.3 | Use strict comparison for in_array() . |
3.22.0 | Introduced. |