WordPress action hook

bbpress_init

Fired by 5 WordPress plugins, running on 1,090+ sites between them.

How to use bbpress_init

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( 'bbpress_init', function() {
	// Your code runs here.
}, 10, 1 );

Argument names come from BuddyPress Group Email Subscription's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

5 plugins that fire bbpress_init

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. BuddyPress Group Email Subscription icon BuddyPress Group Email Subscription1,000+ installs do_action( 'bbpress_init' ) legacy-forums.php:517
  2. BuddyPress Restrict Group Creation icon BuddyPress Restrict Group Creation40+ installs do_action( 'bbpress_init' ) bp-restrict-group-creation.php:122
  3. BuddyPress Community Stats icon BuddyPress Community Stats30+ installs do_action( 'bbpress_init' ) bp-community-stats.php:237
  4. BuddyPress Forums Extras icon BuddyPress Forums Extras10+ installs do_action( 'bbpress_init' ) bp-forum-extras.php:34
  5. BuddyPress Member Profile Stats icon BuddyPress Member Profile Stats10+ installs do_action( 'bbpress_init' ) bp-member-profile-stats.php:237

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.