Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/19/2025 08:05:04 PM (7 months ago)
Author:
espellcaste
Message:

BP Nouveau: Introduce a new hook before/after an Activity Stream (Single Item).

New entry_content hooks were introduced before/after an Activity Stream. The hook name followed the pattern in the template, e.g. entry_comments.

Developed in https://github.com/buddypress/buddypress/pull/410

Props bhargavbhandari90.

See #9287 (14.0).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/14.0/src/bp-templates/bp-nouveau/buddypress/activity/entry.php

    r13182 r14161  
    77 *
    88 * @since 3.0.0
    9  * @version 10.0.0
     9 * @version 14.0.0
    1010 */
    1111
     
    3232                </div>
    3333
     34                <?php bp_nouveau_activity_hook( 'before', 'entry_content' ); ?>
     35
    3436                <?php if ( bp_nouveau_activity_has_content() ) : ?>
    3537
     
    4143
    4244                <?php endif; ?>
     45
     46                <?php bp_nouveau_activity_hook( 'after', 'entry_content' ); ?>
    4347
    4448                <?php bp_nouveau_activity_entry_buttons(); ?>
Note: See TracChangeset for help on using the changeset viewer.