I highly recommend to include the main plugin and extensions using the TGM Activation Class. The TGM Activation Class is being proposed to be included in WordPress core. So, we have good reasons to use it.
But, if you want to include the tab extension in your theme anyway, then you have to do 2 things:
- Include the plugin main file
- Enqueue correct CSS/JS files
Your code above only did the 1st thing. To enqueue CSS/JS file, you can do this:
add_action( 'rwmb_enqueue_scripts', 'prefix_meta_box_tabs_enqueue' );
function prefix_meta_box_tabs_enqueue()
{
wp_enqueue_style( 'tabs-ext', get_template_directory_uri() . '/inc/meta-box-tabs/tabs.css' );
wp_enqueue_script( 'tabs-ext', get_template_directory_uri() . '/inc/meta-box-tabs/tabs.js', array( 'jquery' ), '', true );
}
Please double check the URL to files tabs.css
and tabs.js
.