Function __global->cns_get_filter_cats
Definitions
sources/cns_members.php
- Find all the Private Topic filter categories employed by the current member.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $only_exists_now | boolean | No | No | False | N/A | N/A | Whether to only show ones that already have things in (i.e. not default ones) |
Returns
- List of filter categories
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find all the Private Topic filter categories employed by the current member.
*
* @param boolean $only_exists_now Whether to only show ones that already have things in (i.e. not default ones)
* @return array List of filter categories
*/
function cns_get_filter_cats(bool $only_exists_now = false) : array
* Find all the Private Topic filter categories employed by the current member.
*
* @param boolean $only_exists_now Whether to only show ones that already have things in (i.e. not default ones)
* @return array List of filter categories
*/
function cns_get_filter_cats(bool $only_exists_now = false) : array
