WordPress filter hook

bbp_reply_is_private

Fired by 4 WordPress plugins, running on 1,010+ sites between them.

How to use bbp_reply_is_private

It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'bbp_reply_is_private', function( $value, $reply_id ) {
	// Change $value here.
	return $value;
}, 10, 2 );

Argument names come from Forumax's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

4 plugins that fire bbp_reply_is_private

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Forumax icon Forumax500+ installs apply_filters( 'bbp_reply_is_private', (bool) $retval, $reply_id ) includes/features/bbp-private-replies.php:161
  2. Turnkey bbPress by WeaverTheme icon Turnkey bbPress by WeaverTheme300+ installs apply_filters( 'bbp_reply_is_private', (bool)$retval, $reply_id ) includes/wvrbbp-runtime-actions.php:669
  3. bbPress icon bbPress200+ installs apply_filters( 'bbp_reply_is_private', (bool) $retval, $reply_id ) bbp-private-replies.php:184
  4. bbPress icon bbPress10+ installs apply_filters( 'bbp_reply_is_private', (bool) $retval, $reply_id ) replies.php:147

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.