coresocial_bbpress_embed_forum_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_forum_settings", $settings );
coreSocial 4.0 — core/pro/expand/BBPress.php:52
Arguments
Name
Type
Description
$settings
array
Initially contains id set to the current forum ID. Passed to the inline render() method.
Returns
array — Render settings for this automatic bbPress 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 forum 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_forum_settings', function ( $settings ) {
    $settings['align'] = 'right';
    return $settings;
} );
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