Function __global->cns_forum_allows_anonymous_posts

Definitions

sources/cns_forums.php

  • Whether a forum supports anonymous posts.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

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 (null: private topics)

Returns

  • Whether it does
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Whether a forum supports anonymous posts.
 *
 * @param  ?AUTO_LINK $forum_id The ID of the forum (null: private topics)
 * @return boolean Whether it does
 */

function cns_forum_allows_anonymous_posts(?int $forum_id) : bool