Reply To: Bug associating a newly created template to custom tab
Hi @freddurst1805
You can use this approach to load template files from your plugin
https://gist.github.com/modemlooper/fb70735dd78de7cd2032
function screen_test(){
add_action('bp_template_title', 'screen_test_title');
add_action('bp_template_content','screen_test_content');
bp_core_load_template(apply_filters('bp_core_template_plugin', 'members/single/plugins'));
}
// buddypress-template folder and file name which you have created inside your plugin.
function screen_test_content() {
include 'buddypress-template/some-template.php';
}