coresocial_bbpress_embed_forum_share_block_before
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
do_action( "coresocial_bbpress_embed_forum_share_block_before" );
coreSocial 4.0 — core/pro/expand/BBPress.php:82
Requires bbPress and enabled forum integration. Fires before the share block inside the integration wrapper. It is skipped when the corresponding auto_embed_skip filter returns true.
No arguments are passed. Resolve the current object with bbp_get_forum_id() if needed. Output printed by the callback appears at this location; a returned value is ignored.
Example
add_action( 'coresocial_bbpress_embed_forum_share_block_before', function () {
echo '<p>' . esc_html__( 'Share this forum', 'my-site' ) . '</p>';
} );