BP Group Sites 0.4.0 has 22 actions and 32 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when BP Group Sites fires an action
add_action( 'bp_after_blogs_loop', function() {
// Your code runs here.
}, 10, 1 );
// Change a value BP Group Sites is about to use
add_filter( 'bpgsites_activity_tab_recent_title_all_yours', function( $section_header_text ) {
// Change $section_header_text here.
return $section_header_text;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Fires after the display of the blogs loop. */ do_action( 'bp_after_blogs_loop' ); -
/** * Fires after the blogs directory list. */ do_action( 'bp_after_directory_blogs_list' ); -
/** * Fires before the start of the blogs loop. */ do_action( 'bp_before_blogs_loop' ); -
/** * Fires before the blogs directory list. */ do_action( 'bp_before_directory_blogs_list' ); -
/** * Fires after the listing of a blog item in the blogs loop. */ do_action( 'bp_directory_blogs_item' ); -
/** * Fires inside the blogs action listing area. */ do_action( 'bp_directory_blogs_actions' ); -
/** * Filters the "All Recent Activity" section header text. */ apply_filters( 'bpgsites_activity_tab_recent_title_all_yours', $section_header_text ); -
/** * Filters our templates based on priority. */ apply_filters( 'bp_template_hierarchy_bpgsites_directory', $new_templates ); -
/** * Filters the "Recent Activity" section header text. */ apply_filters( 'bpgsites_activity_tab_recent_title_all_public', $section_header_text ); -
/** * Construct prefix and allow filtering. */ apply_filters( 'bpgsites_comment_prefix', sprintf( __( 'Posted in: %s', 'bp-group-sites' ), $link ), $name, $comment, $group_id ); -
/** * Filters the group extension plural. */ apply_filters( 'bpgsites_extension_name', __( 'Group Site', 'bp-group-sites' ) ); -
/** * Filters the group extension plural. */ apply_filters( 'bpgsites_extension_plural', __( 'Group Sites', 'bp-group-sites' ) ); -
/** * Filters the initial nav item position. */ apply_filters( 'bpgsites_extension_pos', 31 ); -
/** * Filters the group extension slug. */ apply_filters( 'bpgsites_extension_slug', 'group-sites' ); -
/** * Filters the group extension plural. */ apply_filters( 'bpgsites_extension_title', __( 'Group Sites', 'bp-group-sites' ) ); -
/** * Filter the group sites component root slug. */ apply_filters( 'bpgsites_get_root_slug', buddypress()->bpgsites->root_slug ); -
/** * Filter the total number of working blogs for this user. */ apply_filters( 'bpgsites_get_total_blog_count_for_user', bpgsites_total_blogs_for_user( $user_id ) ); -
/** * Filter whether the blog is associated with the current group. */ apply_filters( 'bpgsites_is_blog_in_group', $return ); -
/** * Return filterable path to templates. */ apply_filters( 'bpgsites_templates_dir', BPGSITES_PATH . 'assets/templates' ); -
do_action( 'bp_after_directory_groupsites' ); -
do_action( 'bp_after_directory_groupsites_content' ); -
do_action( 'bp_after_directory_groupsites_page' ); -
do_action( 'bp_before_directory_groupsites' ); -
do_action( 'bp_before_directory_groupsites_content' ); -
do_action( 'bp_before_directory_groupsites_page' ); -
do_action( 'bp_blogs_directory_blog_sub_types' ); -
do_action( 'bp_blogs_directory_blog_types' ); -
do_action( 'bp_blogs_directory_order_options' ); -
do_action( 'bp_directory_groupsites_content' ); -
do_action( 'bp_activity_entry_content' ); -
do_action( 'bp_after_activity_entry' ); -
do_action( 'bp_before_activity_entry' ); -
do_action( 'bp_blogs_screen_index' ); -
apply_filters( 'bpgsites_activity_post_name', __( 'post', 'bp-group-sites' ), $post ); -
apply_filters( 'bpgsites_bloginfo_avatar_type', 'thumb' ); -
apply_filters( 'bpgsites_comment_name', sprintf( __( 'Comments in %s', 'bp-group-sites' ), bpgsites_get_extension_plural() ) ); -
apply_filters( 'bpgsites_get_all_possible_groupsites', $filtered_blogs ); -
apply_filters( 'bpgsites_get_total_blog_count', bpgsites_total_blogs() ); -
apply_filters( 'bpgsites_load_template_filter', $found_template ); -
apply_filters( 'bpgsites_override_reply_to_href', $href, $text_sig ); -
apply_filters( 'bpgsites_override_reply_to_href_denied', $href ); -
apply_filters( 'bpgsites_override_reply_to_text', $link_text, $paragraph_text ); -
apply_filters( 'bpgsites_override_reply_to_text_denied', $link_text, $paragraph_text ); -
apply_filters( 'bpgsites_post_name', $post_name ); -
apply_filters( 'bpgsites_require_comment_registration', 0 ); -
do_action( 'bpgsites_screen_index' ); -
apply_filters( 'bpgsites_screen_index', 'bpgsites/index' ); -
apply_filters( 'bpgsites_visit_site_button_text', $label ); -
apply_filters( 'bpgsites_visit_site_button_title', $label ); -
do_action( 'content_class' ); -
apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base );
Generated from BP Group Sites's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: