bbp_get_forum_visibility

  • apply_filters( 'bbp_get_forum_visibility', get_post_status( $forum_id ), $forum_id )

    Source Reference:

    • Component: bbPress :: bbp-forum
      File: /bbp-includes/bbp-forum-template.php :: Trac Source Line: 1326
      	 * @uses bbp_get_forum_id() To get the forum id
      	 * @uses get_post_visibility() To get the forum's visibility
      	 * @uses apply_filters() Calls 'bbp_get_forum_visibility' with the visibility
      	 *                        and forum id
      	 * @return string Status of forum
      	 */
      	function bbp_get_forum_visibility( $forum_id = 0 ) {
      		$forum_id = bbp_get_forum_id( $forum_id );
      
      		return apply_filters( 'bbp_get_forum_visibility', get_post_status( $forum_id ), $forum_id );
      	}
      
      /**
       * Is the forum a category?
       *
       * @since bbPress (r2746)
       *
       * @param int $forum_id Optional. Forum id
       * @uses get_post_meta() To get the forum category meta
       * @return bool Whether the forum is a category or not
      

Comments are closed.