Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: BuddyPress 101: bp-test, Building Block For BP Component


nicolagreco
Participant

@nicolagreco

@dimensionmedia,

I’m sorry. So, i think that you don’t need add files in /member-theme/ because you can write your plugin without adding files in /member-theme/ for example you can write:

function test_page_settings() {
global $current_user, $bp_settings_updated, $pass_error;
add_action( 'bp_template_title', 'test_page_title' );
add_action( 'bp_template_content', 'test_page_content' );
add_action( 'bp_template_content_header', 'test_page_tabs' );
bp_catch_uri('plugin-template');
}
function test_page_title() {
_e( 'Hello title', 'buddypress' );
}
function test_page_content() {
global $bp, $current_user, $bp_settings_updated, $pass_error; ?>
<p>Hello Content</p>
<?php

function test_page_tabs() {
global $bp, $create_group_step, $completed_to_step;
?>
<ul class="content-header-nav">
<li>Hello Tabs</li>
</ul>
<?php } ?>

With that you don’t need to add page in /member-theme/. I think that users that install a plugins want only add files on mu-plugins/.

Think if i’ve another member-theme that isn’t like the default, and i would like add this plugin..

I hope i explain well now ;)

Skip to toolbar