LLMS_Post_Model::get_terms( string $tax, boolean $single = false )
Get an array of terms for a given taxonomy for the post
Description Description
Parameters Parameters
- $tax
-
(Required) Taxonomy name.
- $single
-
(Optional) Return only one term as an int, useful for taxes which Can only have one term (eg: visibilities and difficulties and such)
Default value: false
Return Return
(mixed) When single a single term object or null. When not single an array of term objects.
Source Source
File: includes/abstracts/abstract.llms.post.model.php
Changelog Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |