coresocial_bbpress_embed_topic_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_topic_share_block_before" );
coreSocial 4.0 — core/pro/expand/BBPress.php:104

Pro version only

This action 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. 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_topic_id() if needed. Output printed by the callback appears at this location; a returned value is ignored.

Example

add_action( 'coresocial_bbpress_embed_topic_share_block_before', function () {
    echo '<p>' . esc_html__( 'Share this topic', 'my-site' ) . '</p>';
} );
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