Skip to content

Instantly share code, notes, and snippets.

@anik
Created April 29, 2020 10:09
Show Gist options
  • Save anik/9bc03f072da6b3ea2128e05ae35335ac to your computer and use it in GitHub Desktop.
Save anik/9bc03f072da6b3ea2128e05ae35335ac to your computer and use it in GitHub Desktop.
add_filter('wpcf_default_single_campaign_tabs', 'single_tab_callback', 9);
function single_tab_callback( $tabs = array() ) {
$tabs['extra_tab'] = array(
'title' => __( 'Add Extra Tab', 'text_domain' ),
'callback' => 'tab_content_callback'
);
return $tabs;
}
function tab_content_callback(){
echo '<h3>This is Tab Content</h3>';
}
@fordiy
Copy link

fordiy commented Jun 5, 2021

How can we edit this new tab content in the front end for owner?

@fordiy
Copy link

fordiy commented Jun 5, 2021

How can we re-order this new tab follow by the Campaign Story?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment