coresocial_bbpress_topic_auto_embed_skip

Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

PHP
Definition
apply_filters( "coresocial_bbpress_topic_auto_embed_skip", $skip );
coreSocial 4.0 — core/pro/expand/BBPress.php:95
Arguments
Name
Type
Description
$skip
bool
Initial false allows the automatic embed.
Returns
bool — True skips this automatic embed.

Pro version only

This filter is available only in the Pro version of the plugin. See the coreSocial Pro pricing page for available plans.

Requires bbPress and enabled topic integration. Runs at the start of the topic integration callback, before its wrapper, before/after actions, or share buttons are output.

This affects the automatic integration, not manually inserted blocks, shortcodes, or widgets. Return true only for the contexts that should be excluded.

Example

add_filter( 'coresocial_bbpress_topic_auto_embed_skip', function ( $skip ) {
    return $skip || is_user_logged_in();
} );
Rate this reference
0
0
2

You are not allowed to rate this post.

Leave a Comment

0
0
0
0
0
0
0
0
0