WordPress action hook
bp_after_activity_loop
Fired by 15 WordPress plugins, running on 102K+ sites between them.
“Fires after the finish of the activity loop.”
How to use bp_after_activity_loop
It's an action: your callback runs at that point. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'bp_after_activity_loop', function() {
// Your code runs here.
}, 10, 1 );Argument names come from BuddyPress's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
15 plugins that fire bp_after_activity_loop
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
BuddyPress90,000+ installs
do_action( 'bp_after_activity_loop' )bp-templates/bp-legacy/buddypress/activity/activity-loop.php:60 -
BP Classic6,000+ installs
do_action( 'bp_after_activity_loop' )themes/bp-default/activity/activity-loop.php:60 -
Youzify5,000+ installs
do_action( 'bp_after_activity_loop' )includes/public/templates/activity/activity-loop.php:64 -
BuddyPress Activity Shortcode1,000+ installs
do_action( 'bp_after_activity_loop' )core/class-bpas-shortcode-helper.php:247 -
BuddyPress Album60+ installs
do_action( 'bp_after_activity_loop' )includes/templates/album/comments.php:66 -
BuddyPress Groupblog50+ installs
do_action( 'bp_after_activity_loop' )themes/bp-groupblog/activity-loop.php:39 -
BuddyPress Wall40+ installs
do_action( 'bp_after_activity_loop' )includes/templates/bp-default/activity/activity-wall-loop.php:56 -
BuddyPics20+ installs
do_action( 'bp_after_activity_loop' )includes/templates/album/comments.php:65 -
Suffusion BuddyPress Pack10+ installs
do_action( 'bp_after_activity_loop' )template-1.2/activity/activity-loop.php:41 -
LS Buddypress Activity plus tabs extension10+ installs
do_action( 'bp_after_activity_loop' )lib/class-ls-bpfb-images-tab-extension.php:90 -
BuddyPress User Activity10+ installs
do_action( 'bp_after_activity_loop' )bp-user-activity.php:152 -
BuddyPress Photos+tags10+ installs
do_action( 'bp_after_activity_loop' )includes/templates/album/comments.php:64 -
Buddypress Jquery Activity Stream Widget10+ installs
do_action( 'bp_after_activity_loop' )activity/activity-loop.php:32 -
BuddyMobile10+ installs
do_action( 'bp_after_activity_loop' )themes/mobile/iphone/buddypress/activity/activity-loop.php:47 -
External Group RSS tab extension10+ installs
do_action( 'bp_after_activity_loop' )extgr_rss_tab.php:91
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.