Function __global->cns_make_post
Definitions
sources/cns_posts_action.php
- Add a post.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: int
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $send_notification | boolean | No | No | True | N/A | N/A | Whether to send out notifications |
Returns
- The ID of the new post
- Type: AUTO_LINK
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Add a post.
*
* @param boolean $send_notification Whether to send out notifications
* @return AUTO_LINK The ID of the new post
*/
function cns_make_post(bool $send_notification = true) : int
* Add a post.
*
* @param boolean $send_notification Whether to send out notifications
* @return AUTO_LINK The ID of the new post
*/
function cns_make_post(bool $send_notification = true) : int
