BP_Activity_Feed::backpat_item_elements()
Fire a hook to ensure backward compatibility for item elements.
Description
Source
File: bp-activity/classes/class-bp-activity-feed.php
public function backpat_item_elements() { switch ( $this->id ) { // Sitewide and friends feeds use the 'personal' hook. case 'sitewide' : case 'friends' : $id = 'personal'; break; default : $id = $this->id; break; } /** * Fires inside backpat_item_elements method for backwards compatibility related to RSS item elements. * * This hook was originally separated out for individual components but has since been abstracted into the BP_Activity_Feed class. * * @since BuddyPress 1.0.0 */ do_action( 'bp_activity_' . $id . '_feed_item' ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.8.0 | 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.