coresocial_bbpress_embed_topic_settings
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_embed_topic_settings", $settings );
coreSocial 4.0 — core/pro/expand/BBPress.php:67
Arguments
Name
Type
Description
$settings
array
Initially contains id set to the current topic ID. Passed to the inline render() method.
Returns
array — Render settings for this automatic bbPress embed.
Requires bbPress and enabled topic integration. Runs after the buttons have been built, immediately before they are rendered.
Supported render settings are id, align, layout, color, styling, and classes. This filter does not change the already-built network list or tracking context. The wrapper ID is a render argument, not a replacement WordPress object ID.
Example
add_filter( 'coresocial_bbpress_embed_topic_settings', function ( $settings ) {
$settings['align'] = 'right';
return $settings;
} );