Function __global->cns_get_post_templates
Definitions
sources/cns_posts_action.php
- Get a list of Post Templates that apply to a certain forum.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $forum_id | AUTO_LINK | No | No | required parameter | N/A | N/A | The ID of the forum |
Returns
- The list of applicable Post Templates
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get a list of Post Templates that apply to a certain forum.
*
* @param AUTO_LINK $forum_id The ID of the forum
* @return array The list of applicable Post Templates
*/
function cns_get_post_templates(int $forum_id) : array
* Get a list of Post Templates that apply to a certain forum.
*
* @param AUTO_LINK $forum_id The ID of the forum
* @return array The list of applicable Post Templates
*/
function cns_get_post_templates(int $forum_id) : array

