BuddyPress Group Email Subscription 4.2.4 has 7 actions and 76 filters, read directly from its source code on Nov 18, 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 BuddyPress Group Email Subscription fires an action
add_action( 'bp_ges_after_bp_send_email', function( $email_type ) {
// Your code runs here.
}, 10, 1 );
// Change a value BuddyPress Group Email Subscription is about to use
add_filter( 'ass_default_subscription_level', function( $global_default_subscription, $group_id ) {
// Change $global_default_subscription here.
return $global_default_subscription;
}, 10, 2 );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
-
/** * Filters the fallback value for a group's default subscription level. */ apply_filters( 'ass_default_subscription_level', bpges_get_global_default_subscription(), $group_id ); -
/** * Filters the query URL for BPGES async requests. */ apply_filters( 'bpges_async_request_query_url', get_admin_url( bp_get_root_blog_id(), 'admin-ajax.php' ) ); -
/** * Forces an item to be "important", ie not excluded from weekly summaries. */ apply_filters( 'ass_this_activity_is_important', false, $activity->type ); -
/** * Filters whether a given user should receive immediate notification of the * current activity. */ apply_filters( 'bp_ass_send_activity_notification_for_user', $send_immediately, $activity, $user_id, $subscription_type ); -
/** * Filters whether to add the current activity item to the digest queue for the * current user. */ apply_filters( 'bp_ges_add_to_digest_queue_for_user', $add_to_digest_queue, $activity, $user_id, $subscription_type ); -
/** * This filter is documented in * /wp-content/plugins/buddypress/bp-core/bp-core-functions.php */ apply_filters( 'bp_get_root_blog_id', constant( 'BP_ROOT_BLOG' ) ); -
/** * Filters the activity action used when generating notifications. */ apply_filters( 'bpges_activity_action', $action_for_subject_line, $activity ); -
/** * Allows activity item queuing to be prevented. */ apply_filters( 'ass_block_group_activity_types', true, $activity->type, $activity ); -
/** * Filter for "cleaning" BPGES email content. */ apply_filters( 'ass_clean_content', $content, $activity ); -
/** * Filters the markup for a group's digest section. */ apply_filters( 'ass_digest_format_item_group', $group_message, $group_id, $type, $activity_ids, $user_id ); -
/** * Prevent the addition of specific activity item IDs for specific users. */ apply_filters( 'ass_digest_record_activity_allow', true, $activity_id, $user_id, $group_id, $type ); -
/** * Filters the CSS used when generating digests. */ apply_filters( 'ass_email_css', $ass_email_css ); -
/** * Filter the arguments before GES sends a BuddyPress email. */ apply_filters( 'ass_send_email_args', $args, $email_type ); -
/** * Filters the email type that GES uses to send a BuddyPress email. */ apply_filters( 'ass_send_email_email_type', $email_type, $args, $to ); -
/** * Filters the parameters of the welcome email. */ apply_filters( 'ass_welcome_email', $welcome_email, $group_id, $user ); -
/** * Filters whether an activity item should be considered valid for a digest. */ apply_filters( 'bp_ges_activity_is_valid_for_digest', $is_valid, $activity_id, $digest_type, $user_id ); -
/** * Hook to do something after GES sends a BP email. */ do_action( 'bp_ges_after_bp_send_email', $email_type ); -
/** * Hook to do something before GES sends a BP email. */ do_action( 'bp_ges_before_bp_send_email', $email_type ); -
/** * Filter's the group's user subscriptions. */ apply_filters( 'bp_ges_group_user_subscriptions', $group_user_subscriptions, $group_id ); -
/** * Filter to allow plugins to stop the email from being sent. */ apply_filters( 'bp_ges_send_digest_to_user', true, $user_id, $group_activity_ids, $message ); -
/** * Filters the "staleness" period for an activity item, after which it is * discarded and not included in digests. */ apply_filters( 'bp_ges_stale_activity_period', $default_stale_activity_period, $activity_id, $digest_type, $user_id ); -
/** * Filters the arguments passed to `ass_send_email()` when a digest is sent. */ apply_filters( 'bp_ges_user_digest_message_args', $user_message_args, $user_id, $group_activity_ids_pristine ); -
/** * Filter to display the email notice form on the "Manage > Email Options * page". */ apply_filters( 'bp_group_email_subscription_enable_email_notice', true ); -
/** * Filter to display the welcome email form on the "Manage > Email Options * page". */ apply_filters( 'bp_group_email_subscription_enable_welcome_email', true ); -
/** * Filters the args used for a BPGES HTTP request. */ apply_filters( 'bpges_async_request_http_request_args', $args ); -
/** * Filters the 'from' email address on outgoing emails. */ apply_filters( 'bpges_email_from_email', null, $email_type, $to, $args ); -
/** * Filters the 'from' name on outgoing emails. */ apply_filters( 'bpges_email_from_name', null, $email_type, $to, $args ); -
/** * Filters whether admin notices should be forced to 'immediate', overriding * user preferences. */ apply_filters( 'bpges_force_immediate_admin_notice', $force, $user_id, $activity, $group_id ); -
/** * Filters the global default subscription level for the site. */ apply_filters( 'bpges_global_default_subscription', $default ); -
/** * Filters the activity action string used to build the notification email. */ apply_filters( 'bpges_notification_activity_action', $action_for_email_content, $activity ); -
/** * Filters the activity link used to build the notification email. */ apply_filters( 'bpges_notification_link', $link, $activity ); -
/** * Filters the subject line of immediate notifications. */ apply_filters( 'bpges_notification_subject', $subject, $activity ); -
/** * Filters the available subscription levels. */ apply_filters( 'bpges_subscription_levels', $levels ); -
/** * Whether to enable the new options panel. */ apply_filters( 'bpges_use_new_options_panel', function_exists( 'bp_nouveau' ) || current_theme_supports( 'buddypress' ) ); -
/** * Filters the items to be included in a digest for a user. */ apply_filters( 'bpges_user_digest_items', $items, $user_id, $type, $timestamp, $is_preview ); -
/** * Filters email content when sent via wp_mail(). */ apply_filters( 'bpges_wp_mail_content', $plaintext_content, $args['content'], $to, $args ); -
apply_filters( 'bp_ass_activity_notification_content', $r['content'], $activity_obj, $r['action'], $group ); -
apply_filters( 'bp_email_use_wp_mail', false ); -
apply_filters( "{$this->identifier}_cron_interval", 5 ); -
apply_filters( "{$this->identifier}_memory_exceeded", $return ); -
apply_filters( "{$this->identifier}_time_exceeded", $return ); -
apply_filters( 'ass_digest_summary_full', esc_html__( 'Group Summary', 'buddypress-group-email-subscription' ) . ":\n<ul class=\"digest-group-summaries\" {$ass_email_css['summary_ul']}>" . $summary . '</ul>', $ass_email_css['summary_ul'], $summary ); -
apply_filters( 'ass_load_assets', bp_is_groups_component() ); -
apply_filters( 'bp_ass_activity_notification_message', $message . $notice, $user_message_args ); -
apply_filters( 'bp_ass_activity_notification_subject', $r['action'] . ' ' . $blogname, $r['action'], $blogname ); -
apply_filters( "{$this->identifier}_default_time_limit", 20 ); -
apply_filters( "{$this->identifier}_queue_lock_time", $lock_duration ); -
do_action( 'ass_admin_notice', $group_id, $_subject, $notice ); -
apply_filters( 'ass_admin_notice_message', $_POST['ass_admin_notice'] ); -
apply_filters( 'ass_admin_notice_subject', $subject, $_POST['ass_admin_notice_subject'], $group_name, $blogname ); -
apply_filters( 'ass_clean_subject', $subject ); -
apply_filters( 'ass_clean_subject_html', $subject ); -
apply_filters( 'ass_digest_content', $item->content, $item, $type ); -
apply_filters( 'ass_digest_disable_notifications', $unsubscribe_message, $user_groups_url ); -
apply_filters( 'ass_digest_format_item', $item_message, $item, $action, $timestamp, $type, $replies ); -
apply_filters( 'ass_digest_group_activity_ids', $group_activity_ids ); -
apply_filters( 'ass_digest_group_message_title', $group_message, $group_id, $type ); -
apply_filters( 'ass_digest_header', $header, $title, $ass_email_css['title'] ); -
apply_filters( 'ass_digest_message_html', "<html><body>{$message}</body></html>", $message ); -
apply_filters( 'ass_digest_subject', "$title [$blogname ); -
apply_filters( 'ass_digest_summary', "<li class=\"digest-group-summary\" {$ass_email_css['summary']}><a href='{$group_permalink}'>$group_name</a> " . sprintf( __( '(%s items)', 'buddypress-group-email-subscription' ), count( $activity_ids ) ) . "</li>\n", $ass_email_css['summary'], $group_slug, $group_name, $activity_ids ); -
apply_filters( 'ass_digest_title', $title, $type ); -
apply_filters( 'ass_get_default_subscription', $default_subscription ); -
apply_filters( 'ass_group_default_status', $status, $group_id ); -
do_action( 'ass_group_subscription', $user_id, $group_id, $action ); -
do_action( 'ass_group_subscription_notification_settings' ); -
apply_filters( 'ass_login_redirect_to', rawurlencode( $url ), $context ); -
apply_filters( 'ass_login_url', wp_login_url() ); -
apply_filters( 'ass_self_post_notification', $self_notify, $meta, $user_id ); -
apply_filters( 'ass_summary_follow_topic', "<div {$ass_email_css['follow_topic']}>" . wp_kses_post( "How to follow a topic: to get email updates for a specific topic, click the topic title - then on the webpage click the <i>Follow this topic</i> button. (If you don't see the button you need to login first.)", 'buddypress-group-email-subscription' ) . "</div>\n", $ass_email_css['follow_topic'] ); -
do_action( 'ass_topic_subscribe_or_mute', $user_id, $group_id, $topic_id, $action ); -
do_action( 'bbpress_init' ); -
apply_filters( 'bp_ass_forum_notification_message', $message . $notice, array( 'message' => $message, 'notice' => $notice, 'user_id' => $user_id, 'subscription_type' => $group_status, 'content' => $the_content, 'view_link' => $primary_link, 'settings_link' => $settings_link, ) ); -
apply_filters( 'bp_ass_forum_reply_content', $post->post_text, $activity, $topic, $group ); -
apply_filters( 'bp_ass_forum_reply_subject', $action . ' ' . $blogname, $action, $blogname ); -
apply_filters( 'bp_ass_new_topic_content', $post->post_text, $activity, $topic, $group ); -
apply_filters( 'bp_ass_new_topic_subject', $action . ' ' . $blogname, $action, $blogname ); -
apply_filters( 'bp_ass_topic_pag_num', 15 ); -
apply_filters( 'bp_ges_login_redirect_url', $login_redirect_url ); -
apply_filters( 'https_local_ssl_verify', false );
Generated from BuddyPress Group Email Subscription'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: