Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Editing the Blogs/Groups/Members/Forum pages?


r-a-y
Keymaster

@r-a-y

add_action() is your friend.

No need to edit the templates directly.

For example, to add custom content after the random blogs:

Add this to /wp-content/plugins/bp-custom.php:

function my_custom_content_after_random_blogs() {
echo 'MY CONTENT AFTER RANDOM BLOGS';
}
add_action('bp_after_directory_blogs_featured', 'my_custom_content_after_random_blogs');

How do you find these actions? Look for do_action() code in your /wp-content/themes/bp-sn-parent/directories/COMPONENT/index.php.

Skip to toolbar