coresocial_bbpress_forum_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_forum_auto_embed_skip", $skip );
coreSocial 4.0 — core/pro/expand/BBPress.php:73
Arguments
Name
Type
Description
$skip
bool
Initial false allows the automatic embed.
Returns
bool — True skips this automatic embed.
Requires bbPress and enabled forum integration. Runs at the start of the forum 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_forum_auto_embed_skip', function ( $skip ) {
return $skip || is_user_logged_in();
} );