apply_filters( 'bp_force_comment_status', bool $retval, bool $open, int $post_id )

Filters whether or not to force comments_status to closed for BuddyPress post types.

Description

Parameters

$retval

(bool) Whether or not we are on a BuddyPress post type.

$open

(bool) True if comments open, false if closed.

$post_id

(int) Post ID for the checked post.

Source

File: bp-core/bp-core-theme-compatibility.php

Changelog

Changelog
Version Description
BuddyPress 1.7.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.