Hi Jeffw,
I read that post before posting my question.
If I’m not mistaken, that will help if I want to create a custom template for create page of buddypress docs.
That helps because the original template was called from the plugin template file.
/buddypress-docs/includes/templates/docs/single-bp_doc.php
$the_template_file = WP_PLUGIN_DIR . "/buddypress-docs/includes/templates/docs/single-bp_doc.php";
register_context( 'BuddyPress Docs Create', 'bp_docs_create', $the_template_file);
Using the code above, I was able to change the template for create docs page.
In my case, the doc tab called a file from Salutation template.
/wp-content/themes/parallelus-salutation/groups/single/plugins.php
instead of /wp-content/themes/parallelus-salutation/groups/single/home.php
Maybe I’m a bit dumb but I don’t see the two are related.
If they are, does that means I need to add something like this into the functions.php file?
If I do this, any other page calling /parallelus-salutation/groups/single/plugins.php will be affected as well. Am I right? It is a good idea?
$the_template_file = WP_THEME_DIR. "/parallelus-salutation/groups/single/plugins.php";
register_context( 'BuddyPress Docs Profile Tab', 'bp_docs_profile_tab', $the_template_file);
I’m a bit slow with this. It doesn’t make sense to me
Cheers mate!