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:

functions.php
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.

  1. BuddyPress icon BuddyPress90,000+ installs do_action( 'bp_after_activity_loop' ) bp-templates/bp-legacy/buddypress/activity/activity-loop.php:60
  2. BP Classic icon BP Classic6,000+ installs do_action( 'bp_after_activity_loop' ) themes/bp-default/activity/activity-loop.php:60
  3. Youzify icon Youzify5,000+ installs do_action( 'bp_after_activity_loop' ) includes/public/templates/activity/activity-loop.php:64
  4. BuddyPress Activity Shortcode icon BuddyPress Activity Shortcode1,000+ installs do_action( 'bp_after_activity_loop' ) core/class-bpas-shortcode-helper.php:247
  5. BuddyPress Album icon BuddyPress Album60+ installs do_action( 'bp_after_activity_loop' ) includes/templates/album/comments.php:66
  6. BuddyPress Groupblog icon BuddyPress Groupblog50+ installs do_action( 'bp_after_activity_loop' ) themes/bp-groupblog/activity-loop.php:39
  7. BuddyPress Wall icon BuddyPress Wall40+ installs do_action( 'bp_after_activity_loop' ) includes/templates/bp-default/activity/activity-wall-loop.php:56
  8. BuddyPics icon BuddyPics20+ installs do_action( 'bp_after_activity_loop' ) includes/templates/album/comments.php:65
  9. Suffusion BuddyPress Pack icon Suffusion BuddyPress Pack10+ installs do_action( 'bp_after_activity_loop' ) template-1.2/activity/activity-loop.php:41
  10. LS Buddypress Activity plus tabs extension icon LS Buddypress Activity plus tabs extension10+ installs do_action( 'bp_after_activity_loop' ) lib/class-ls-bpfb-images-tab-extension.php:90
  11. BuddyPress User Activity icon BuddyPress User Activity10+ installs do_action( 'bp_after_activity_loop' ) bp-user-activity.php:152
  12. BuddyPress Photos+tags icon BuddyPress Photos+tags10+ installs do_action( 'bp_after_activity_loop' ) includes/templates/album/comments.php:64
  13. Buddypress Jquery Activity Stream Widget icon Buddypress Jquery Activity Stream Widget10+ installs do_action( 'bp_after_activity_loop' ) activity/activity-loop.php:32
  14. BuddyMobile icon BuddyMobile10+ installs do_action( 'bp_after_activity_loop' ) themes/mobile/iphone/buddypress/activity/activity-loop.php:47
  15. External Group RSS tab extension icon 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.