bbp_get_component_name()
Return Forums’ component name/ID (‘forums’ by default)
Description
This is used primarily for Notifications integration.
Return
(string)
Source
File: bp-forums/functions.php
23 24 25 26 27 28 29 30 31 32 33 34 35 | function bbp_get_component_name() { // Use existing ID if ( ! empty ( bbpress()->extend->buddypress->id ) ) { $retval = bbpress()->extend->buddypress->id; // Use default } else { $retval = 'forums' ; } return apply_filters( 'bbp_get_component_name' , $retval ); } |
Changelog
Version | Description |
---|---|
bbPress (r5232) | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.