How would I go about embedding discussions into a custom tab created by another plugin?
Here is the code for the tab. I effectively would like to echo out discussions in the discussions tab.
add_filter('wpcf_default_single_campaign_tabs', 'single_tab_callback_stretch', 100);
function single_tab_callback_stretch( $tabs = array() ) {
$tabs['stretch'] = array(
'title' => __( 'Stretch Goals', 'text_domain' ),
'callback' => 'tab_content_callback_stretch'
);
$tabs['discussion'] = array(
'title' => __( 'Discussion', 'text_domain' ),
'callback' => 'tab_content_callback_discussion'
);
return $tabs;
}
function tab_content_callback_stretch(){
echo '<h3>Stretch Goals</h3>';
echo do_shortcode('[elementor-template id="322"]');
//echo '<h3>After Shortcode</h3>';
}
function tab_content_callback_discussion(){
echo '<h3>Discussion</h3>';
echo THIS_IS_WHERE_TO_PUT_DISCUSSIONS----();
}
Thanks for your help!
-
This topic was modified 1 year, 7 months ago by
Omar Dabbas.