create new bp_core_load_template for profile page.
-
Okay, I’ve been searching all over for an answer. I just can’t seem to ask the question the right way.
I’ve created a plugin to that simply loads data onto the profile nav.
using.. (Yes, I know that small piece of code isn’t going to do anything)
define('BP_DEFAULT_COMPONENT','nav-name');
function my_bp_nav_adder()
{
bp_core_new_nav_item(
array(
'name' => __('NAME', 'buddypress'),
'slug' => 'SLUT',
'position' => 10,
'show_for_displayed_user' => true,
'screen_function' => 'my_hidden_truths',
'item_css_id' => 'all-conversations',
'default_subnav_slug' => false
));
print_r($wp_filter);
}function blah_blah_blah() {
add_action( 'bp_template_title', 'truth_wall_header_title' );
add_action( 'bp_template_content', 'truth_wall_content' );
bp_core_load_template( bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ));****
}
Right where the *’s are.. I want to be able to change the template to a different dir..
In other words, some plugins I want them to be able to have the member-header.php TRUE,
and some other plugins I want them to be FALSE.I’m not really sure on how to explain this.
If you guys need me to explain more just let me know. I hope I was able to explain it well enough.
Thank you in advance. – Mike.
- The topic ‘create new bp_core_load_template for profile page.’ is closed to new replies.