Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: merge friends Acrivity And Personal Activity in one page


abu_eldahab
Member

@abu_eldahab

Hello

I found The solution i need to add screen function to work as controller and print the content throw it

and this is the code for doing that

add_action( ‘bp_template_title’, ‘bp_wall_screen_one_title’ );
add_action( ‘bp_template_content’, ‘bp_wall_screen_one_content’ );
bp_core_load_template( apply_filters( ‘bp_core_template_plugin’, ‘members/single/plugins’ ) );

function bp_wall_screen_one_title()
{
_e( ‘wall’, ‘acticity’ );
}

/*
* This function to Add content to our page
*/
function bp_wall_screen_one_content() {
do_action( ‘bp_wall_screen_one_content’ );
bp_core_load_template( apply_filters( ‘bp_activity_template_my_activity’, ‘members/single/home’ ) );

}
Regards
Ahmed

Skip to toolbar